fatresize is libparted based, so does not support FAT12.

This commit is contained in:
Andrius Štikonas 2018-04-16 11:32:29 +03:00
parent 99c14ad074
commit a43d5bbc5b
2 changed files with 11 additions and 6 deletions

View File

@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
*************************************************************************/
#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;

View File

@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
*************************************************************************/
#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;