Allow moving partitions of unknown type.

This usually be safe. There is a theoretical chance that some
unknown OS fails to boot, but I'm not aware of any such cases.

BUG: 404398
This commit is contained in:
Andrius Štikonas 2019-02-15 19:14:15 +00:00
parent 39a5645c38
commit ecb78121f3
Signed by: andrius
GPG Key ID: E2E5CD054CB9CD3E
2 changed files with 10 additions and 2 deletions

View File

@ -19,6 +19,9 @@
namespace FS
{
FileSystem::CommandSupportType unknown::m_Move = FileSystem::cmdSupportNone;
unknown::unknown(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Type::Unknown)
{

View File

@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
*************************************************************************/
#if !defined(KPMCORE_UNKNOWN_H)
#ifndef KPMCORE_UNKNOWN_H
#define KPMCORE_UNKNOWN_H
#include "util/libpartitionmanagerexport.h"
@ -40,6 +39,12 @@ public:
return true;
}
bool canMount(const QString & deviceNode, const QString & mountPoint) const override;
CommandSupportType supportMove() const override {
return m_Move;
}
static CommandSupportType m_Move;
};
}