]>
Commit | Line | Data |
---|---|---|
726f69e2 KZ |
1 | |
2 | All changes in fdisk.c are marked with this comment: /* bf */ | |
3 | ||
4 | I added some explanatory comments to make it easier to see what | |
5 | changed and why. You'll probably want to remove them. | |
6 | ||
7 | There's a function sync_disks() in fdisklabel.c which could be called | |
8 | from write_table() in fdisk.c (line 1216) (and be moved to fdisk.c) | |
9 | to save a few bytes. | |
10 | ||
11 | There's a function edit_int() in fdisklabel.c which I added because read_int() | |
12 | had no default value. In fdisk v2.0d it has so edit_int could be replaces by | |
13 | read_int(). The function which uses edit_int() (bsd_edit_disklabel ()) is a | |
14 | bit crufty anyhow: | |
15 | - The disklabel contains some values which are probably meaningless for IDE or | |
16 | SCSI drives, I made them editable but I don't know any sensible range of | |
17 | values (bad for read_int()). (interleave, trackskew, cylskew) | |
18 | - I made the values secsize/nsectors/ntracks/ncylinders editable for Linux/Alpha | |
19 | but not for Linux/i386 because under Linux/i386 the disklabel is inside a | |
20 | DOS partition so the disklabel was written by an OS which got along with the | |
21 | disk and should have left the correct values there. | |
22 | ||
23 | I've put the BSD copyright (which applies to fdisklabel.h and | |
24 | alpha_bootblock_checksum, bsd_dkcksum, bsd_print_disklabel in fdisklabel.c) | |
25 | into a separate man page. This way all Linux versions of BSD programs can refer | |
26 | to ths bsd.<n> man page. | |
27 | ||
28 | fasten@informatik.uni-bonn.de |