]> git.karo-electronics.de Git - karo-tx-linux.git/commit
scsi_debug: fix prevent_allow+verify regressions
authorDouglas Gilbert <dgilbert@interlog.com>
Sun, 22 Nov 2015 17:11:28 +0000 (12:11 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 26 Nov 2015 02:38:53 +0000 (21:38 -0500)
commitf7f9f26b139e53d798ea76465223a5f237d90fd3
treed0c3e4170e580512787f09ffe335ccd7df174f86
parentf4ab421b719763277e5721f3a2eabb12e31c3b9e
scsi_debug: fix prevent_allow+verify regressions

Ruediger Meier observed a regression with the PREVENT ALLOW MEDIUM
REMOVAL command in lk 3.19:

http://www.spinics.net/lists/util-linux-ng/msg11448.html

Inspection indicated the same regression with VERIFY(10).

The patch is against lk 3.19.3 and also works with lk 4.3.0 .  With this
patch both commands are accepted and do nothing.

ChangeLog:

 - fix the lk 3.19 regression so that the PREVENT ALLOW MEDIUM REMOVAL
   command is supported once again

 - same fix for VERIFY(10)

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Hannes Reinicke <hare@suse.de>
Reviewed-by: Ewan Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c