projects
/
xfstests-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs: Use word mathcing for _btrfs_get_subvolid()
[xfstests-dev.git]
/
common
/
btrfs
diff --git
a/common/btrfs
b/common/btrfs
index 19ac7cc4b18cd93000e3e2df92365f4e21a91638..85b33e4c067a020ea5f0d5043a9b25c02f1d40ad 100644
(file)
--- a/
common/btrfs
+++ b/
common/btrfs
@@
-7,7
+7,7
@@
_btrfs_get_subvolid()
mnt=$1
name=$2
- $BTRFS_UTIL_PROG sub list $mnt |
grep $name
| awk '{ print $2 }'
+ $BTRFS_UTIL_PROG sub list $mnt |
egrep "\s$name$"
| awk '{ print $2 }'
}
# _require_btrfs_command <command> [<subcommand>|<option>]