Revert parts of the commit that changed maxCapacity to prevent integer overflow.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1327837
This commit is contained in:
parent
7b9d632fa8
commit
90baf68b40
|
@ -97,7 +97,7 @@ namespace FS
|
|||
|
||||
qint64 btrfs::maxCapacity() const
|
||||
{
|
||||
return 16 * Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
return Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
}
|
||||
|
||||
qint64 btrfs::readUsedCapacity(const QString& deviceNode) const
|
||||
|
|
|
@ -86,7 +86,7 @@ namespace FS
|
|||
|
||||
qint64 exfat::maxCapacity() const
|
||||
{
|
||||
return 64 * Capacity::unitFactor(Capacity::Byte, Capacity::ZiB);
|
||||
return Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
}
|
||||
|
||||
bool exfat::check(Report& report, const QString& deviceNode) const
|
||||
|
|
|
@ -82,7 +82,7 @@ namespace FS
|
|||
return SupportTool("lvm2", KUrl("http://sourceware.org/lvm2/"));
|
||||
}
|
||||
|
||||
qint64 lvm2_pv::minCapacity() const
|
||||
qint64 lvm2_pv::maxCapacity() const
|
||||
{
|
||||
return 5 * Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ namespace FS
|
|||
virtual CommandSupportType supportUpdateUUID() const { return m_UpdateUUID; }
|
||||
virtual CommandSupportType supportGetUUID() const { return m_GetUUID; }
|
||||
|
||||
virtual qint64 minCapacity() const;
|
||||
virtual qint64 maxCapacity() const;
|
||||
virtual SupportTool supportToolName() const;
|
||||
virtual bool supportToolFound() const;
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ namespace FS
|
|||
|
||||
qint64 xfs::maxCapacity() const
|
||||
{
|
||||
return 8 * Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
return Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
}
|
||||
|
||||
qint64 xfs::readUsedCapacity(const QString& deviceNode) const
|
||||
|
|
Loading…
Reference in New Issue