10 #include <linux/types.h>
37 for (blk = 0; ; blk++, put_dev_sector(sect)) {
40 data = read_part_sector(state, blk, §);
43 printk(
"Dev %s: unable to read RDB block %d\n",
57 *(
__be32 *)(data+0xdc) = 0;
60 printk(
"Warning: Trashed word at 0xd0 in block %d "
61 "ignored in checksum calculation\n",blk);
65 printk(
"Dev %s: RDB in block %d has bad checksum\n",
73 char tmp[7 + 10 + 1 + 1];
76 snprintf(tmp,
sizeof(tmp),
" RDSK (%d)", blksize * 512);
81 for (part = 1; blk>0 && part<=16; part++, put_dev_sector(sect)) {
83 data = read_part_sector(state, blk, §);
86 printk(
"Dev %s: unable to read partition block %d\n",
111 put_partition(state,slot++,start_sect,nr_sects);
119 if (dostype[3] <
' ')
120 snprintf(tmp,
sizeof(tmp),
" (%c%c%c^%c)",
121 dostype[0], dostype[1],
122 dostype[2], dostype[3] +
'@' );
124 snprintf(tmp,
sizeof(tmp),
" (%c%c%c%c)",
125 dostype[0], dostype[1],
126 dostype[2], dostype[3]);
128 snprintf(tmp,
sizeof(tmp),
"(res %d spb %d)",