Is anyone interested in preparing an upload to fix this issue? It is
still in our long queue and it should not be tackled soon.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1913729
Title:
Thanks ser0ser for the feedback!
That confirms that you are in "no other" situation than what I've found.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1913729
Title:
/usr/bin/rescan-scsi-bus.sh:
It's `/dev/sg20` for me:
+ SGDEV=sg20
+ test -z sg20
+ sg_turs /dev/sg20
+ RC=5
+ test 5 = 2 -o 5 = 6
+ test '!=' 0
/usr/bin/rescan-scsi-bus.sh: line 257: test: !=: unary operator expected
And this sg20 points to 0:0:2:7 HCTL. I have no idea what it is. It shouldn't
exist.
This server has 2
Since all systems I've used didn't trigger it I wondered how common this
case is.
Could you run it like:
sudo bash -x /usr/bin/rescan-scsi-bus.sh -i
That should show you which devices are the ones triggering it for you.
Before the error there is a call to
sg_turs /dev/$SGDEV >/dev/null
It is indeed a use before assign.
It isn't a problem if this while loop exits a check before the counter,
but if not then the error will trigger.
This is the fix
https://github.com/hreinecke/sg3_utils/commit/b5dadcb663fd9aeacd8f6145bfd6d50df12c0163
Which is in 1.44
And thereby in Focal and
245
while test $RC = 2 -o $RC = 6 && test $ctr -le 30; do
257
if test $ctr != 0; then white_out; fi
So the bad variable is "$ctr"
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1913729
Title:
Bionic:
$ sudo /usr/bin/rescan-scsi-bus.sh -i
Scanning SCSI subsystem for new devices
Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning host 1 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning host 2 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs
Scanning host 3 for