rstone cecff2d26e 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
..
2010-08-23 22:24:11 +00:00
2010-02-15 14:07:40 +00:00
2010-08-06 14:33:42 +00:00
2010-08-23 22:24:11 +00:00
2011-07-13 05:32:55 +00:00
2010-03-02 16:58:04 +00:00
2011-01-25 22:25:16 +00:00
2011-03-23 13:44:09 +00:00
2011-07-01 19:22:27 +00:00
2010-03-10 18:51:13 +00:00
2010-06-20 12:52:33 +00:00
2010-12-19 13:40:38 +00:00
2011-06-06 13:18:29 +00:00
2011-04-14 08:53:04 +00:00
2010-12-08 15:12:37 +00:00
2011-06-24 07:29:04 +00:00
2011-06-02 09:56:42 +00:00