Fix more integer overflows in maxCapacity().
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1327841
This commit is contained in:
parent
298fcf1772
commit
971b6780ef
|
@ -19,7 +19,6 @@
|
|||
|
||||
#include "fs/linuxswap.h"
|
||||
|
||||
#include "util/capacity.h"
|
||||
#include "util/externalcommand.h"
|
||||
|
||||
#include <klocale.h>
|
||||
|
|
|
@ -84,7 +84,7 @@ namespace FS
|
|||
|
||||
qint64 lvm2_pv::maxCapacity() const
|
||||
{
|
||||
return 5 * Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
return Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
}
|
||||
|
||||
bool lvm2_pv::check(Report& report, const QString& deviceNode) const
|
||||
|
|
|
@ -100,7 +100,7 @@ namespace FS
|
|||
|
||||
qint64 nilfs2::maxCapacity() const
|
||||
{
|
||||
return 8 * Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
return Capacity::unitFactor(Capacity::Byte, Capacity::EiB);
|
||||
}
|
||||
|
||||
bool nilfs2::check(Report& report, const QString& deviceNode) const
|
||||
|
|
Loading…
Reference in New Issue