2015-06-04 01:29:22 +01:00
|
|
|
/*************************************************************************
|
|
|
|
* Copyright (C) 2010 by Volker Lanz <vl@fidra.de> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or *
|
|
|
|
* modify it under the terms of the GNU General Public License as *
|
|
|
|
* published by the Free Software Foundation; either version 3 of *
|
|
|
|
* the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#include "fs/hpfs.h"
|
|
|
|
|
|
|
|
#include "util/capacity.h"
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
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
|
|
|
|
2015-07-13 15:16:36 +01:00
|
|
|
hpfs::hpfs(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label) :
|
|
|
|
FileSystem(firstsector, lastsector, sectorsused, label, FileSystem::Hpfs)
|
|
|
|
{
|
|
|
|
}
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2015-07-13 15:16:36 +01:00
|
|
|
qint64 hpfs::maxCapacity() const
|
|
|
|
{
|
|
|
|
return 2 * Capacity::unitFactor(Capacity::Byte, Capacity::TiB);
|
|
|
|
}
|
2015-06-04 01:29:22 +01:00
|
|
|
}
|