From 6eab5deb08ef064dfa6e330cf788bbd210c2b6df Mon Sep 17 00:00:00 2001 From: Volker Lanz Date: Fri, 19 Mar 2010 14:07:57 +0000 Subject: [PATCH] don't output a warning if the partition is smaller than expected due to aligning: we cannot know here if the warning is justified at all. svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1105196 --- src/core/partitiontable.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/partitiontable.cpp b/src/core/partitiontable.cpp index 4af1904..523677a 100644 --- a/src/core/partitiontable.cpp +++ b/src/core/partitiontable.cpp @@ -416,10 +416,6 @@ bool PartitionTable::alignPartition(const Device& d, Partition& p, const Partiti p.fileSystem().setLastSector(p.fileSystem().lastSector() - sectorAlignment(d)); } - if (p.length() < originalLength) - Log(Log::warning) << i18ncp("@info/plain", "The partition cannot be created with the requested length of one sector, ", "The partition cannot be created with the requested length of %1 sectors, ", originalLength) - + i18ncp("@info/plain", "and will instead only be one sector long.", "and will instead only be %1 sectors long.", p.length()); - // In an extended partition we also need to align unallocated children at the beginning and at the end // (there should never be a need to align non-unallocated children) if (p.roles().has(PartitionRole::Extended))