2020-09-28 00:45:21 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de>
|
|
|
|
SPDX-FileCopyrightText: 2016-2018 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
SPDX-FileCopyrightText: 2020 Arnaud Ferraris <arnaud.ferraris@collabora.com>
|
|
|
|
SPDX-FileCopyrightText: 2020 Gaël PORTAY <gael.portay@collabora.com>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
2015-06-04 01:29:22 +01:00
|
|
|
|
|
|
|
#include "fs/hpfs.h"
|
|
|
|
|
|
|
|
#include "util/capacity.h"
|
|
|
|
|
2019-06-12 17:41:11 +01:00
|
|
|
#include <QString>
|
|
|
|
|
2015-06-04 01:29:22 +01:00
|
|
|
namespace FS
|
|
|
|
{
|
2015-07-13 15:16:36 +01:00
|
|
|
FileSystem::CommandSupportType hpfs::m_GetUsed = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_GetLabel = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_Create = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_Grow = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_Shrink = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_Move = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_Check = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_Copy = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_Backup = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_SetLabel = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_UpdateUUID = FileSystem::cmdSupportNone;
|
|
|
|
FileSystem::CommandSupportType hpfs::m_GetUUID = FileSystem::cmdSupportNone;
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2020-03-21 13:18:13 +00:00
|
|
|
hpfs::hpfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, const QVariantMap& features) :
|
2020-01-12 11:54:14 +00:00
|
|
|
FileSystem(firstsector, lastsector, sectorsused, label, features, FileSystem::Type::Hpfs)
|
2015-07-13 15:16:36 +01:00
|
|
|
{
|
|
|
|
}
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2015-07-13 15:16:36 +01:00
|
|
|
qint64 hpfs::maxCapacity() const
|
|
|
|
{
|
2018-04-09 15:14:34 +01:00
|
|
|
return 2 * Capacity::unitFactor(Capacity::Unit::Byte, Capacity::Unit::TiB);
|
2015-07-13 15:16:36 +01:00
|
|
|
}
|
2015-06-04 01:29:22 +01:00
|
|
|
}
|