From 1bd8ee4b79885bdf2afd389c914c030490319317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B6ppner?= Date: Fri, 20 Feb 2026 13:48:51 +0100 Subject: [PATCH] lstape: Remove type filter support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is only one supported tape device type left. A filter command line option doesn't make any sense anymore. Remove the functionality and documentation of the --type option. Reviewed-by: Jens Remus Signed-off-by: Jan Höppner --- zconf/lstape | 19 ------------------- zconf/lstape.8 | 10 ++-------- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/zconf/lstape b/zconf/lstape index b37bd9cd..943f3256 100755 --- a/zconf/lstape +++ b/zconf/lstape @@ -28,10 +28,6 @@ function PrintUsage() { : Print this help text. : --ccw-only|--scsi-only : Limit output to CCW or SCSI devices only. - : -t|--type - : Limit output of CCW tape devices to the given - : devices. The list consists of device types - : separated by ','. : --online|--offline : Show only devices that are either online or : offline (only one option is allowed). This @@ -63,7 +59,6 @@ function PrintVersion() } FLSEP="" -DEVLIST="3490" SHORTID=false SHOWCCW=true VERBOSE=false @@ -77,14 +72,6 @@ while [ $# -ne 0 ]; do PrintUsage exit 0 ;; - -t|--type) - if [ $# -lt 2 ]; then - RequireArgument $1 1 - exit 1 - fi - shift - DEVLIST="$1" - ;; --online) if $FILTEROFFLINE; then echo -n "Option --online and --offline " >&2 @@ -148,10 +135,6 @@ function SysfsCreateListCCW() { medium_state_str[1] = "LOADED " medium_state_str[2] = "UNLOADED" - split("'$DEVLIST'", A, ",") - for(i = 1; i in A; i++) { - devlist[A[i]] = 1 - } shortid = "'$SHORTID'"=="true" ? 1 : 0 filteronline = "'$FILTERONLINE'"=="true" ? 1 : 0 filteroffline = "'$FILTEROFFLINE'"=="true" ? 1 : 0 @@ -168,8 +151,6 @@ function SysfsCreateListCCW() { devtype = Read(devdir "/devtype") split(devtype, A, "/") - if (!(A[1] in devlist)) - next online = Read(devdir "/online") if (filteronline && !online) diff --git a/zconf/lstape.8 b/zconf/lstape.8 index 019b6e58..6262c64d 100644 --- a/zconf/lstape.8 +++ b/zconf/lstape.8 @@ -64,12 +64,6 @@ of SCSI tape devices. Limit output to either online or offline devices. This filter has no effect on the output of SCSI devices. -.TP -.BR -t | --type " \fI\fR" -Limit output to given device types, for example 3490 -(currently only applies to channel-attached -tape devices). - .TP .I Limits the output to information about the specified tape device or @@ -131,9 +125,9 @@ The serial number. List all tape devices that are available .RE -\fBlstape --ccw-only -t 3490 --online\fR +\fBlstape --ccw-only --online\fR .RS -Show all 3490 CCW devices that are online. +Show all channel-attached tape devices that are online. .RE \fBlstape --scsi-only --verbose\fR