]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: use unsigned long long to internally represent sector number
authorPetr Uzel <petr.uzel@suse.cz>
Mon, 19 Sep 2011 13:29:14 +0000 (15:29 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Sep 2011 13:24:04 +0000 (15:24 +0200)
commit6c709b57a36a92db4ea78e821464aa2e1c547c85
treee61d9d32ca8f266c4f748e4d57196a87cd272266
parentb7767afc630d04b859428fbb23ee8d45a58822a8
sfdisk: use unsigned long long to internally represent sector number

Unsigned long is only 4 bytes long on i586, which is not enough to
represent sector number on todays large disks. Use unsigned long long,
which is 8 bytes long, to store the sector numbers internally, so that
we could later make some sanity checks and warn the user if the sector
numbers exceed the limits imposed by DOS partition table format.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
fdisk/sfdisk.c