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:
Shengqi Chen
2025-09-03 23:49:34 +08:00
committed by Brian Behlendorf
parent dfc2c32590
commit ffba31c236
3 changed files with 18 additions and 0 deletions
+7
View File
@@ -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:
+9
View File
@@ -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
+2
View File
@@ -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