From 9c10b49802d56c6a03bd5347580dedae5e9723c5 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 14 Oct 2014 11:48:19 +0200 Subject: [PATCH] Check if the filesystem to be resized actually supports grow/shrink. --- src/modules/partition/gui/PartitionViewStep.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/partition/gui/PartitionViewStep.cpp b/src/modules/partition/gui/PartitionViewStep.cpp index ea1888151..0711c6f80 100644 --- a/src/modules/partition/gui/PartitionViewStep.cpp +++ b/src/modules/partition/gui/PartitionViewStep.cpp @@ -296,6 +296,10 @@ PartitionViewStep::canBeResized( const QString& partitionPath ) if ( candidate ) { cDebug() << "found Partition* for" << partitionWithOs; + if ( !candidate->fileSystem().supportGrow() || + !candidate->fileSystem().supportShrink() ) + return false; + bool ok = false; double requiredStorageGB = Calamares::JobQueue::instance() ->globalStorage()