[blivet 5/6] Remove some methods from devicelibs.btrfs.

mulhern amulhern at redhat.com
Wed Dec 11 15:06:17 UTC 2013


* scan_devices method.
It is unused in the codebase.
A sentence on the wiki (https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices) says:
btrfs device scan is used to scan all of the block devices under /dev and probe for Btrfs volumes. This is required after loading the btrfs module if you're running with more than one device in a filesystem.
* take_snapshot
Totally unused and doesn't do anything.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/devicelibs/btrfs.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/blivet/devicelibs/btrfs.py b/blivet/devicelibs/btrfs.py
index de3aa65..869a170 100644
--- a/blivet/devicelibs/btrfs.py
+++ b/blivet/devicelibs/btrfs.py
@@ -98,12 +98,6 @@ def delete_subvolume(mountpoint, name):
     args = ["subvol", "delete", path]
     return btrfs(args)
 
-def create_snapshot(source, dest):
-    pass
-
-def scan_device(path):
-    return btrfs(["device", "scan", path])
-
 _SUBVOL_REGEX_STR = r'ID (\d+) gen \d+ parent (\d+) top level \d+ path (.+)\n'
 _SUBVOL_REGEX = re.compile(_SUBVOL_REGEX_STR)
 
-- 
1.8.3.1



More information about the anaconda-patches mailing list