freebsd-dev/sbin/fdisk
Poul-Henning Kamp 1a03d6d57a Use symbolic constants from <sys/diskmbr.h> instead of local constants.
Always set the magic sequence when we write, rather than trusting the
previously read boot code to do so.

Use explicit encoding/decoding of little endian disk image.

Remove a comment which was OBE.

Change the test vector for "fdisk -I" to reflect that there is a magic
sequence in the result now.

Add test case for "fdisk" which reads the image back.

At least for the two test-cases this program now gives the same result
on sparc64 as on i386.  The lack of an installed /boot/mbr on sparc64
raises an (un)interesting question.
2003-04-13 21:57:08 +00:00
..
fdisk.8 s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
fdisk.c Use symbolic constants from <sys/diskmbr.h> instead of local constants. 2003-04-13 21:57:08 +00:00
Makefile Pull in the encoding/decoding functions for struct dos_partition. 2003-04-13 21:34:16 +00:00
runtest.sh Use symbolic constants from <sys/diskmbr.h> instead of local constants. 2003-04-13 21:57:08 +00:00