From 16744a745bb36072e6865029f7bae830259a6985 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 14 Feb 2013 13:48:18 +0200 Subject: [PATCH] partitionedfs: remove bogus alignment check The following perfectly valid KS option makes MIC complain about alignment and exit: part /d1 --size 1 --fstype=ext4 --ondisk sdb --align 1024 This creates a 1MiB partition and aligned to 1MiB. And it is even fine to ask for a 1MiB partition to be aligned to 4MiB. So the alignment size check is totally incorrect - remove it. Change-Id: If84be72f43c3be91ae5a7c3fa49b10ef1202cf50 Signed-off-by: Artem Bityutskiy --- mic/utils/partitionedfs.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mic/utils/partitionedfs.py b/mic/utils/partitionedfs.py index 8f4b302..c89fd33 100644 --- a/mic/utils/partitionedfs.py +++ b/mic/utils/partitionedfs.py @@ -210,11 +210,6 @@ class PartitionedMount(Mount): (p['disk_name'], d['numpart'], align_sectors, d['offset'], p['align'])) - # p['size'] already converted in secctors - if p['size'] <= align_sectors: - raise MountError("Partition for %s is too small to handle " - "the alignment change." % p['mountpoint']) - # increase the offset so we actually start the partition on right alignment d['offset'] += align_sectors -- 2.7.4