func snapshot(volume string, dest string, readonly bool) error { if readonly { return util.RunStderr(exec.Command("btrfs", "subvolume", "snapshot", "-r", FilePath(volume), FilePath(dest))) } else { return util.RunStderr(exec.Command("btrfs", "subvolume", "snapshot", FilePath(volume), FilePath(dest))) } }
func subvolumeDelete(name string) error { return util.RunStderr(exec.Command("btrfs", "subvolume", "delete", FilePath(name))) }