[PATCH 3/5] Update parsing of 'btrfs subvol list' to match its new output. (#868468)
David Lehman
dlehman at redhat.com
Mon Oct 29 20:30:13 UTC 2012
---
pyanaconda/storage/devicelibs/btrfs.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pyanaconda/storage/devicelibs/btrfs.py b/pyanaconda/storage/devicelibs/btrfs.py
index 0aab1d0..14c0f55 100644
--- a/pyanaconda/storage/devicelibs/btrfs.py
+++ b/pyanaconda/storage/devicelibs/btrfs.py
@@ -108,7 +108,7 @@ def list_subvolumes(mountpoint):
args = ["subvol", "list", mountpoint]
buf = btrfs(args, capture=True)
vols = []
- for group in re.findall(r'ID (\d+) top level (\d+) path (.+)\n', buf):
+ for group in re.findall(r'ID (\d+) gen (\d+) top level (\d+) path (.+)\n', buf):
vols.append({"id": int(group[0]), "path": group[2]})
return vols
--
1.7.7.6
More information about the anaconda-patches
mailing list