Fix reporting of "Used" space in Btrfs partitions.
There are two numbers found by grepping for "bytes used". It seems that the first one is more important, e.g. we cannot resize partitions to a smaller size than this number. svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1324119
This commit is contained in:
parent
26068b0ba2
commit
c01900e6d1
|
@ -107,7 +107,7 @@ namespace FS
|
||||||
|
|
||||||
if (cmd.run())
|
if (cmd.run())
|
||||||
{
|
{
|
||||||
QRegExp rxBytesUsed("\nbytes used (\\d+)");
|
QRegExp rxBytesUsed(" bytes used (\\d+)");
|
||||||
|
|
||||||
if (rxBytesUsed.indexIn(cmd.output()) != -1)
|
if (rxBytesUsed.indexIn(cmd.output()) != -1)
|
||||||
return rxBytesUsed.cap(1).toLongLong();
|
return rxBytesUsed.cap(1).toLongLong();
|
||||||
|
|
Loading…
Reference in New Issue