File indexing completed on 2024-05-05 05:48:45

0001 /*
0002     SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de>
0003     SPDX-FileCopyrightText: 2016-2018 Andrius Štikonas <andrius@stikonas.eu>
0004     SPDX-FileCopyrightText: 2020 Arnaud Ferraris <arnaud.ferraris@collabora.com>
0005     SPDX-FileCopyrightText: 2020 Gaël PORTAY <gael.portay@collabora.com>
0006 
0007     SPDX-License-Identifier: GPL-3.0-or-later
0008 */
0009 
0010 #include "fs/hpfs.h"
0011 
0012 #include "util/capacity.h"
0013 
0014 #include <QString>
0015 
0016 namespace FS
0017 {
0018 FileSystem::CommandSupportType hpfs::m_GetUsed = FileSystem::cmdSupportNone;
0019 FileSystem::CommandSupportType hpfs::m_GetLabel = FileSystem::cmdSupportNone;
0020 FileSystem::CommandSupportType hpfs::m_Create = FileSystem::cmdSupportNone;
0021 FileSystem::CommandSupportType hpfs::m_Grow = FileSystem::cmdSupportNone;
0022 FileSystem::CommandSupportType hpfs::m_Shrink = FileSystem::cmdSupportNone;
0023 FileSystem::CommandSupportType hpfs::m_Move = FileSystem::cmdSupportNone;
0024 FileSystem::CommandSupportType hpfs::m_Check = FileSystem::cmdSupportNone;
0025 FileSystem::CommandSupportType hpfs::m_Copy = FileSystem::cmdSupportNone;
0026 FileSystem::CommandSupportType hpfs::m_Backup = FileSystem::cmdSupportNone;
0027 FileSystem::CommandSupportType hpfs::m_SetLabel = FileSystem::cmdSupportNone;
0028 FileSystem::CommandSupportType hpfs::m_UpdateUUID = FileSystem::cmdSupportNone;
0029 FileSystem::CommandSupportType hpfs::m_GetUUID = FileSystem::cmdSupportNone;
0030 
0031 hpfs::hpfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, const QVariantMap& features) :
0032     FileSystem(firstsector, lastsector, sectorsused, label, features, FileSystem::Type::Hpfs)
0033 {
0034 }
0035 
0036 qint64 hpfs::maxCapacity() const
0037 {
0038     return 2 * Capacity::unitFactor(Capacity::Unit::Byte, Capacity::Unit::TiB);
0039 }
0040 }