fix btrfs subvolume snapshot

This commit is contained in:
Antoine Marcotte 2022-11-06 13:55:34 -05:00 committed by Caleb Beard
parent 1b719d7c9c
commit 7a00e5c205

View file

@ -1222,6 +1222,9 @@ def subvolume_snapshot(source, dest=None, name=None, read_only=False):
cmd = ["btrfs", "subvolume", "snapshot"]
if read_only:
cmd.append("-r")
cmd.append(source)
if dest and not name:
cmd.append(dest)
if dest and name: