summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/btrfs6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/btrfs b/common/btrfs
index c9903a41..62cee209 100644
--- a/common/btrfs
+++ b/common/btrfs
@@ -6,10 +6,10 @@
_btrfs_get_subvolid()
{
- mnt=$1
- name=$2
+ local mnt=$1
+ local name=$2
- $BTRFS_UTIL_PROG sub list $mnt | grep -E "\s$name$" | $AWK_PROG '{ print $2 }'
+ $BTRFS_UTIL_PROG subvolume list $mnt | grep -E "\s$name$" | $AWK_PROG '{ print $2 }'
}
# _require_btrfs_command <command> [<subcommand>|<option>]