reiser4 was missing max capacity method. the actual max capacity of reiser4
is "unknown" according to wikipedia. a quick web search also reveals nothing. svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1128815
This commit is contained in:
parent
d6417cbbab
commit
68ccea7ac2
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "fs/reiser4.h"
|
||||
|
||||
#include "util/capacity.h"
|
||||
#include "util/externalcommand.h"
|
||||
|
||||
#include <QStringList>
|
||||
|
@ -49,6 +50,13 @@ namespace FS
|
|||
m_Backup = cmdSupportCore;
|
||||
}
|
||||
|
||||
qint64 reiser4::maxCapacity() const
|
||||
{
|
||||
// looks like it's actually unknown. see
|
||||
// http://en.wikipedia.org/wiki/Comparison_of_file_systems
|
||||
return Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
}
|
||||
|
||||
qint64 reiser4::readUsedCapacity(const QString& deviceNode) const
|
||||
{
|
||||
ExternalCommand cmd("debugfs.reiser4", QStringList() << deviceNode);
|
||||
|
|
|
@ -56,6 +56,8 @@ namespace FS
|
|||
virtual CommandSupportType supportCopy() const { return m_Copy; }
|
||||
virtual CommandSupportType supportBackup() const { return m_Backup; }
|
||||
|
||||
virtual qint64 maxCapacity() const;
|
||||
|
||||
public:
|
||||
static CommandSupportType m_GetUsed;
|
||||
static CommandSupportType m_GetLabel;
|
||||
|
|
Loading…
Reference in New Issue