From a43d5bbc5b37de0b3e7ea9b424ee9a6db6eb473f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Mon, 16 Apr 2018 11:32:29 +0300 Subject: [PATCH] fatresize is libparted based, so does not support FAT12. --- src/fs/fat12.h | 7 +++---- src/fs/fat16.h | 10 ++++++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/fs/fat12.h b/src/fs/fat12.h index ef8818f..5a02895 100644 --- a/src/fs/fat12.h +++ b/src/fs/fat12.h @@ -16,8 +16,7 @@ * along with this program. If not, see .* *************************************************************************/ -#if !defined(KPMCORE_FAT12_H) - +#ifndef KPMCORE_FAT12_H #define KPMCORE_FAT12_H #include "util/libpartitionmanagerexport.h" @@ -62,10 +61,10 @@ public: return m_Create; } CommandSupportType supportGrow() const override { - return m_Grow; + return cmdSupportNone; } CommandSupportType supportShrink() const override { - return m_Shrink; + return cmdSupportNone; } CommandSupportType supportMove() const override { return m_Move; diff --git a/src/fs/fat16.h b/src/fs/fat16.h index a654431..ea988a5 100644 --- a/src/fs/fat16.h +++ b/src/fs/fat16.h @@ -16,8 +16,7 @@ * along with this program. If not, see .* *************************************************************************/ -#if !defined(KPMCORE_FAT16_H) - +#ifndef KPMCORE_FAT16_H #define KPMCORE_FAT16_H #include "fs/fat12.h" @@ -43,6 +42,13 @@ public: bool create(Report& report, const QString& deviceNode) override; bool resize(Report& report, const QString& deviceNode, qint64 length) const override; + CommandSupportType supportGrow() const override { + return m_Grow; + } + CommandSupportType supportShrink() const override { + return m_Shrink; + } + qint64 minCapacity() const override; qint64 maxCapacity() const override; bool supportToolFound() const override;