From c59773420cb9adc8af180bf9084115225c28e01d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 29 Nov 2010 14:02:56 +0100 Subject: [PATCH] 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 --- fdisk/fdisksgilabel.c | 3 +++ 1 file changed, 3 insertions(+) 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], -- 2.39.5