diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2022-02-14 17:48:44 -0800 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2022-02-21 00:44:51 +0800 |
commit | 9470dc5dddeaa48ef3633a46ab89523d78b3245f (patch) | |
tree | 1c480d1719ecfe67f1f5c5fe5d2814af25e45903 | |
parent | 115096a405bc82ca6c8b46c2c08ee1f7e77eb4b1 (diff) | |
download | xfstests-dev-9470dc5dddeaa48ef3633a46ab89523d78b3245f.tar.gz |
common/btrfs: use $AWK_PROG
Use $AWK_PROG instead of just awk in case the preferred awk
program is different.
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Adam Manzanares <a.manzanares@samsung.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rw-r--r-- | common/btrfs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/btrfs b/common/btrfs index 5de926dd9b..2fdefb18b2 100644 --- a/common/btrfs +++ b/common/btrfs @@ -9,7 +9,7 @@ _btrfs_get_subvolid() mnt=$1 name=$2 - $BTRFS_UTIL_PROG sub list $mnt | egrep "\s$name$" | awk '{ print $2 }' + $BTRFS_UTIL_PROG sub list $mnt | egrep "\s$name$" | $AWK_PROG '{ print $2 }' } # _require_btrfs_command <command> [<subcommand>|<option>] @@ -418,7 +418,7 @@ _run_btrfs_balance_start() _scratch_btrfs_sectorsize() { $BTRFS_UTIL_PROG inspect-internal dump-super $SCRATCH_DEV |\ - grep sectorsize | awk '{print $2}' + grep sectorsize | $AWK_PROG '{print $2}' } _btrfs_supports_forget() @@ -460,7 +460,7 @@ _require_btrfs_sysfs_fsid() local fsid fsid=$($BTRFS_UTIL_PROG filesystem show $TEST_DIR |grep uuid: |\ - awk '{print $NF}') + $AWK_PROG '{print $NF}') # Check if the kernel has sysfs fsid support. # Following kernel patch adds it: |