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:
parent
39a5645c38
commit
ecb78121f3
|
@ -19,6 +19,9 @@
|
||||||
|
|
||||||
namespace FS
|
namespace FS
|
||||||
{
|
{
|
||||||
|
|
||||||
|
FileSystem::CommandSupportType unknown::m_Move = FileSystem::cmdSupportNone;
|
||||||
|
|
||||||
unknown::unknown(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
unknown::unknown(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
||||||
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Type::Unknown)
|
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Type::Unknown)
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,8 +15,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
|
* 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
|
#define KPMCORE_UNKNOWN_H
|
||||||
|
|
||||||
#include "util/libpartitionmanagerexport.h"
|
#include "util/libpartitionmanagerexport.h"
|
||||||
|
@ -40,6 +39,12 @@ public:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
bool canMount(const QString & deviceNode, const QString & mountPoint) const override;
|
bool canMount(const QString & deviceNode, const QString & mountPoint) const override;
|
||||||
|
|
||||||
|
CommandSupportType supportMove() const override {
|
||||||
|
return m_Move;
|
||||||
|
}
|
||||||
|
|
||||||
|
static CommandSupportType m_Move;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue