freebsd-skq/sbin/fdisk
Ryan Stone f9373bbdac The MBR uses a 32-bit unsigned integer to store the size of a slice, but
fdisk(1) internally uses a signed int.  Should a user attempt to specify
a slice containing more than 2^31 - 1 sectors, an error will be reported
on systems with sizeof(long) == 4 and the slice size will be silently
truncated on systems with sizeof(long) > 4.

Instead use an unsigned long to store the slice size in fdisk(1).  This
allows the user to specify a slice size up to the maximum permitted by
the MBR on-disk format and does not have any problems with silent
truncation should the use specify an slice size larger than 2^32 on systems
with sizeof(long) > 4.

Submitted by:	Mark Johnston (markjdb AT gmail DOT com)
MFC after:	2 weeks
2011-07-17 21:08:16 +00:00
..
fdisk.8 Bump the document date to reflect the 'p' command enhancements. 2009-05-25 21:27:31 +00:00
fdisk.c The MBR uses a 32-bit unsigned integer to store the size of a slice, but 2011-07-17 21:08:16 +00:00
Makefile Add missing library dependencies. 2008-09-23 13:12:51 +00:00
runtest.sh