From: Karel Zak Date: Mon, 29 Nov 2010 13:02:56 +0000 (+0100) Subject: fdisk: fix freespace boundaries calculation on SGI disklabel X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c59773420cb9adc8af180bf9084115225c28e01d;p=util-linux fdisk: fix freespace boundaries calculation on SGI disklabel Thanks to Aurelien Jarno Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510130 Signed-off-by: Karel Zak --- diff --git a/fdisk/fdisksgilabel.c b/fdisk/fdisksgilabel.c index 3707a4cd..3547195c 100644 --- a/fdisk/fdisksgilabel.c +++ b/fdisk/fdisksgilabel.c @@ -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],