# # Common btrfs specific functions # . common/module # The recommended way to execute simple "btrfs" command. _btrfs() { run_check $BTRFS_UTIL_PROG $* } _btrfs_get_subvolid() { local mnt=$1 local name=$2 $BTRFS_UTIL_PROG subvolume list $mnt | grep -E "\s$name$" | $AWK_PROG '{ print $2 }' } # _require_btrfs_command [|