]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: warn if partition exceeds partition table limits
authorPetr Uzel <petr.uzel@suse.cz>
Mon, 19 Sep 2011 13:29:15 +0000 (15:29 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Sep 2011 13:24:06 +0000 (15:24 +0200)
commit4310e47adc6805c0069897c62fce040d5d991364
treebbd38fa67eea82c44b14e8afb46d47032f4bd645
parent6c709b57a36a92db4ea78e821464aa2e1c547c85
sfdisk: warn if partition exceeds partition table limits

Warn the user if the partition to be created exceeds limits
imposed by the DOS partition table, which is:
* partition has to start on sector < 2^32
* partition size has to be < 2^32 sectors

For 512-byte logical sector size, these limits are ~2.2 TiB.

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