]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/README.fdisk.bsd
Imported from util-linux-2.5 tarball.
[thirdparty/util-linux.git] / disk-utils / README.fdisk.bsd
CommitLineData
726f69e2
KZ
1
2All changes in fdisk.c are marked with this comment: /* bf */
3
4I added some explanatory comments to make it easier to see what
5changed and why. You'll probably want to remove them.
6
7There's a function sync_disks() in fdisklabel.c which could be called
8from write_table() in fdisk.c (line 1216) (and be moved to fdisk.c)
9to save a few bytes.
10
11There's a function edit_int() in fdisklabel.c which I added because read_int()
12had no default value. In fdisk v2.0d it has so edit_int could be replaces by
13read_int(). The function which uses edit_int() (bsd_edit_disklabel ()) is a
14bit 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
23I've put the BSD copyright (which applies to fdisklabel.h and
24alpha_bootblock_checksum, bsd_dkcksum, bsd_print_disklabel in fdisklabel.c)
25into a separate man page. This way all Linux versions of BSD programs can refer
26to ths bsd.<n> man page.
27
28fasten@informatik.uni-bonn.de