]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (dos) count fisrt usable LBA to total number of used sectors
authorKarel Zak <kzak@redhat.com>
Tue, 24 Jun 2014 08:32:25 +0000 (10:32 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Jun 2014 08:32:25 +0000 (10:32 +0200)
commit11712b6667225ef6fa6b64c1fe48ed5b501ad72e
tree5718df3b57a26affc75f8836b3a007ff61ef6e84
parent63fb717d8c71c6ccc7dc9cb1e97bff5fb28733fd
libfdisk: (dos) count fisrt usable LBA to total number of used sectors

The check() function counts number of used sectors, but it counts only
partitions. This is mistake, the area before the first partition is
also "used" place (boot loaders or we have to align the first partition
to disk I/O limits, etc).

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/dos.c