mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
egrep -> grep -E
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13259
This commit is contained in:
@@ -2018,8 +2018,8 @@ function verify_pool
|
||||
#
|
||||
function get_disklist # pool
|
||||
{
|
||||
zpool iostat -v $1 | awk '(NR > 4) {print $1}' | \
|
||||
egrep -v -e '^-----' -e "^(mirror|raidz[1-3]|draid[1-3]|spare|log|cache|special|dedup)|\-[0-9]$"
|
||||
echo $(zpool iostat -v $1 | awk '(NR > 4) {print $1}' | \
|
||||
grep -vEe '^-----' -e "^(mirror|raidz[1-3]|draid[1-3]|spare|log|cache|special|dedup)|\-[0-9]$")
|
||||
}
|
||||
|
||||
#
|
||||
@@ -2182,7 +2182,7 @@ function check_pool_status # pool token keyword <verbose>
|
||||
if [[ $verbose == true ]]; then
|
||||
log_note $scan
|
||||
fi
|
||||
echo $scan | egrep -qi "$keyword"
|
||||
echo $scan | grep -qi "$keyword"
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user