Martin K. Petersen 9447b6ce94 scsi: scsi_debug: Implement support for write protect
Teach scsi_debug to honor SWP in the Control Mode Page and report the
resulting WP state in the Device-Specific Parameter field.

In check_device_access_params() verify that commands that will write
the medium are permitted to do so.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
2019-02-12 11:15:44 -05:00
..
2018-12-18 23:19:21 -05:00
2018-12-28 14:48:06 -08:00
2018-12-18 23:19:21 -05:00
2018-12-18 23:19:21 -05:00
2018-06-19 22:02:25 -04:00
2018-12-18 23:19:21 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:58:35 -05:00
2019-01-08 21:58:35 -05:00
2018-12-18 23:19:21 -05:00
2018-12-28 14:48:06 -08:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:19:21 -05:00
2018-11-06 21:31:28 -05:00
2019-02-05 21:28:52 -05:00
2018-12-18 23:19:21 -05:00
2019-02-05 21:28:52 -05:00
2018-12-18 23:13:12 -05:00
2018-12-18 23:19:21 -05:00
2018-12-28 14:48:06 -08:00
2018-11-07 13:42:32 -07:00
2018-12-18 23:13:12 -05:00
2018-11-07 13:42:32 -07:00
2018-11-07 13:42:32 -07:00
2018-11-07 13:42:32 -07:00
2018-11-07 13:42:32 -07:00
2018-12-28 14:48:06 -08:00
2018-06-04 07:58:06 -07:00
2018-11-07 13:42:32 -07:00
2018-06-19 22:02:25 -04:00
2018-06-12 16:19:22 -07:00
2018-12-18 23:19:21 -05:00
2019-02-05 21:29:49 -05:00
2018-12-18 23:19:21 -05:00
2018-12-28 14:48:06 -08:00
2018-12-28 14:48:06 -08:00