mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 14:16:31 +00:00
Minor cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3389 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1412,8 +1412,6 @@ static void vdisk_exec_inquiry(struct scst_cmd *cmd)
|
||||
}
|
||||
|
||||
buf[0] = cmd->dev->type; /* type dev */
|
||||
if (virt_dev->removable)
|
||||
buf[1] = 0x80; /* removable */
|
||||
/* Vital Product */
|
||||
if (cmd->cdb[1] & EVPD) {
|
||||
if (0 == cmd->cdb[2]) {
|
||||
@@ -1577,6 +1575,8 @@ static void vdisk_exec_inquiry(struct scst_cmd *cmd)
|
||||
goto out_put;
|
||||
}
|
||||
|
||||
if (virt_dev->removable)
|
||||
buf[1] = 0x80; /* removable */
|
||||
buf[2] = 5; /* Device complies to SPC-3 */
|
||||
buf[3] = 0x12; /* HiSup + data in format specified in SPC */
|
||||
if (cmd->tgtt->fake_aca)
|
||||
|
||||
Reference in New Issue
Block a user