From cbde70fafd0ab9353e79b708621adf73420fdded Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Wed, 4 Aug 2021 15:35:26 +0000 Subject: sg_ses: guard against small '--maxlen=' values In several utilities guard against '--maxlen=' < 4 or < 16 as they seem to serve no useful purpose other than finding awkward corner cases that may trip up these utilities. git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@908 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- doc/sg_logs.8 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/sg_logs.8') diff --git a/doc/sg_logs.8 b/doc/sg_logs.8 index 014c8525..43fd1901 100644 --- a/doc/sg_logs.8 +++ b/doc/sg_logs.8 @@ -1,4 +1,4 @@ -.TH SG_LOGS "8" "January 2020" "sg3_utils\-1.45" SG3_UTILS +.TH SG_LOGS "8" "August 2021" "sg3_utils\-1.47" SG3_UTILS .SH NAME sg_logs \- access log pages with SCSI LOG SENSE command .SH SYNOPSIS @@ -177,6 +177,9 @@ values and 1 for \fILEN\fR are not accepted. \fILEN\fR cannot exceed 65535 (0xffff). Responses can be quite large (e.g. the background scan results log page) and this option can be used to limit the amount of information returned. +.br +If \fILEN\fR is less than 2 of greater than 65,535 an error is generated. +Otherwise if \fILEN\fR is less than 4 then 4 is used instead. .TP \fB\-n\fR, \fB\-\-name\fR decode some log pages into 'name=value' entries, one per line. The name -- cgit v1.2.3