patch-2.4.0-test5 linux/drivers/scsi/scsi_scan.c
Next file: linux/drivers/scsi/sr.c
Previous file: linux/drivers/scsi/scsi_ioctl.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Tue Jul 18 22:26:13 2000
- Orig file:
v2.4.0-test4/linux/drivers/scsi/scsi_scan.c
- Orig date:
Fri Jul 14 12:12:12 2000
diff -u --recursive --new-file v2.4.0-test4/linux/drivers/scsi/scsi_scan.c linux/drivers/scsi/scsi_scan.c
@@ -557,7 +557,9 @@
memcpy(SDpnt->rev, scsi_result + 32, 4);
SDpnt->removable = (0x80 & scsi_result[1]) >> 7;
- SDpnt->online = TRUE;
+ /* Use the peripheral qualifier field to determine online/offline */
+ if (((scsi_result[0] >> 5) & 7) == 1) SDpnt->online = FALSE;
+ else SDpnt->online = TRUE;
SDpnt->lockable = SDpnt->removable;
SDpnt->changed = 0;
SDpnt->access_count = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)