mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
cmd: rename arc_summary to zarcsummary
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Colm Buckley <colm@tuatha.org> Signed-off-by: Shengqi Chen <harry-chen@outlook.com> Closes #16357 Closes #17712
This commit is contained in:
committed by
Brian Behlendorf
parent
5bf1500ee3
commit
743866cd2a
+5
-5
@@ -30,16 +30,16 @@
|
||||
|
||||
is_freebsd && ! python3 -c 'import sysctl' 2>/dev/null && log_unsupported "python3 sysctl module missing"
|
||||
|
||||
log_assert "arc_summary generates output and doesn't return an error code"
|
||||
log_assert "zarcsummary generates output and doesn't return an error code"
|
||||
|
||||
# Without this, the below checks aren't going to work the way we hope...
|
||||
set -o pipefail
|
||||
|
||||
for arg in "" "-a" "-d" "-p 1" "-g" "-s arc" "-r"; do
|
||||
log_must eval "arc_summary $arg > /dev/null"
|
||||
log_must eval "zarcsummary $arg > /dev/null"
|
||||
done
|
||||
|
||||
log_must eval "arc_summary | head > /dev/null"
|
||||
log_must eval "arc_summary | head -1 > /dev/null"
|
||||
log_must eval "zarcsummary | head > /dev/null"
|
||||
log_must eval "zarcsummary | head -1 > /dev/null"
|
||||
|
||||
log_pass "arc_summary generates output and doesn't return an error code"
|
||||
log_pass "zarcsummary generates output and doesn't return an error code"
|
||||
+3
-3
@@ -30,10 +30,10 @@
|
||||
|
||||
is_freebsd && ! python3 -c 'import sysctl' 2>/dev/null && log_unsupported "python3 sysctl module missing"
|
||||
|
||||
log_assert "arc_summary generates an error code with invalid options"
|
||||
log_assert "zarcsummary generates an error code with invalid options"
|
||||
|
||||
for arg in "-x" "-5" "-p 7" "--err" "-@"; do
|
||||
log_mustnot eval "arc_summary $arg > /dev/null"
|
||||
log_mustnot eval "zarcsummary $arg > /dev/null"
|
||||
done
|
||||
|
||||
log_pass "arc_summary generates an error code with invalid options"
|
||||
log_pass "zarcsummary generates an error code with invalid options"
|
||||
Reference in New Issue
Block a user