]> 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, 18 Oct 2011 12:22:27 +0000 (14:22 +0200)
commit8c62239e5ee0970d8227c93cbc81e4693dc88122
tree8a7afe938680cbdafee3bb8385b198b7b521820a
parent06bea6636440eade43ad84d666a8f5b8fdb76e30
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