From c01900e6d17fa203d51ebce0f67f6aa95a8d8de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Mon, 5 Nov 2012 17:06:27 +0000 Subject: [PATCH] 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 --- src/fs/btrfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs/btrfs.cpp b/src/fs/btrfs.cpp index 55e486f..fd723cb 100644 --- a/src/fs/btrfs.cpp +++ b/src/fs/btrfs.cpp @@ -107,7 +107,7 @@ namespace FS if (cmd.run()) { - QRegExp rxBytesUsed("\nbytes used (\\d+)"); + QRegExp rxBytesUsed(" bytes used (\\d+)"); if (rxBytesUsed.indexIn(cmd.output()) != -1) return rxBytesUsed.cap(1).toLongLong();