fdisk: fix freespace boundaries calculation on SGI disklabel

Thanks to Aurelien Jarno <aurelien@aurel32.net>

Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510130
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2010-11-29 14:02:56 +01:00
parent e3d61a4579
commit c59773420c
1 changed files with 3 additions and 0 deletions

View File

@ -489,6 +489,9 @@ verify_sgi(int verbose)
}
start = sgi_get_start_sector(Index[i])
+ sgi_get_num_sectors(Index[i]);
/* Align free space on cylinder boundary */
if (start % cylsize)
start += cylsize - (start % cylsize);
if (debug > 1) {
if (verbose)
printf("%2d:%12d\t%12d\t%12d\n", Index[i],