mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-25 10:12:13 +03:00
Add upcoming renaming notice for arc_summary and arcstat
They will become zarcsummary and zarcstat in 2.4.0. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Shengqi Chen <harry-chen@outlook.com> Closes #16357 Closes #17695
This commit is contained in:
parent
e5132a3382
commit
cbc6d57012
@ -1021,6 +1021,13 @@ def main():
|
|||||||
treated separately because they come with their own call.
|
treated separately because they come with their own call.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# notify user for upcoming renaming in 2.4.0
|
||||||
|
abs_path = os.path.abspath(sys.argv[0].strip())
|
||||||
|
script_name = os.path.basename(abs_path)
|
||||||
|
if script_name != "zarcsummary":
|
||||||
|
sys.stderr.write("Note: this script will be renamed to zarcsummary in ")
|
||||||
|
sys.stderr.write("zfs 2.4.0. Please migrate ASAP.\n")
|
||||||
|
|
||||||
kstats = get_kstats()
|
kstats = get_kstats()
|
||||||
|
|
||||||
if ARGS.graph:
|
if ARGS.graph:
|
||||||
|
|||||||
@ -56,6 +56,7 @@ import time
|
|||||||
import getopt
|
import getopt
|
||||||
import re
|
import re
|
||||||
import copy
|
import copy
|
||||||
|
import os
|
||||||
|
|
||||||
from signal import signal, SIGINT, SIGWINCH, SIG_DFL
|
from signal import signal, SIGINT, SIGWINCH, SIG_DFL
|
||||||
|
|
||||||
@ -766,6 +767,14 @@ def calculate():
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
|
# notify user for upcoming renaming in 2.4.0
|
||||||
|
abs_path = os.path.abspath(sys.argv[0].strip())
|
||||||
|
script_name = os.path.basename(abs_path)
|
||||||
|
if script_name != "zarcstat":
|
||||||
|
sys.stderr.write("Note: this script will be renamed to zarcstat in ")
|
||||||
|
sys.stderr.write("zfs 2.4.0. Please migrate ASAP.\n")
|
||||||
|
|
||||||
global sint
|
global sint
|
||||||
global count
|
global count
|
||||||
global hdr_intr
|
global hdr_intr
|
||||||
|
|||||||
@ -20,6 +20,8 @@
|
|||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm arcstat
|
.Nm arcstat
|
||||||
.Nd report ZFS ARC and L2ARC statistics
|
.Nd report ZFS ARC and L2ARC statistics
|
||||||
|
.Sh NOTICE
|
||||||
|
It will be renamed to zarcstat in zfs 2.4.0. Please migrate ASAP.
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl havxp
|
.Op Fl havxp
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user