Patch to update scsi_debug.c
Quoted 3 lines · Pete Zaitcev
I would like to have
scsi_debugwith a variable number of hosts. Patch is attached. Does anyone object to the demise ofscsi_debug.h?
<snipped patch/>
Pete,
Maybe you may like to consider this effort. Apart from allowing extra hosts (hundreds of them via boot/module option) it is like a RAM disk. The default RAM allocation is 8 MB which can be overridden by a boot/module option. You can run fdisk on it, make a fs, mount it, etc.
See:
http://www.torque.net/sg/sdebug.html
It runs properly on SMP (Eric's didn't) and supports a reasonable number of SCSI commands including READ_16 and WRITE_16. I used the latter 2 commands to test (via sg) that the recently added 16 byte CDBs worked.
BTW I kept scsi_debug.h as most other SCSI adapter drivers have .h and .c components.
Doug Gilbert
The ramdisk emulation should be easy to do, you
can get sample code from most of the iSCSI
implementations on Linux. Most of them simulate a
ramdisk on the target side.
Balbir
Quoted 25 lines · Douglas Gilbert
Quoted 2 lines · Pete Zaitcev
I would like to have
scsi_debugwith a variable number of hosts. Patch is attached. Does anyone object to the demise ofscsi_debug.h?<snipped patch/>
Pete,
Maybe you may like to consider this effort. Apart from allowing extra hosts (hundreds of them via boot/module option) it is like a RAM disk. The default RAM allocation is 8 MB which can be overridden by a boot/module option. You can run fdisk on it, make a fs, mount it, etc.See:
http://www.torque.net/sg/sdebug.htmlIt runs properly on SMP (Eric's didn't) and supports a reasonable number of SCSI commands including
READ_16andWRITE_16. I used the latter 2 commands to test (via sg) that the recently added 16 byte CDBs worked.BTW I kept
scsi_debug.has most other SCSI adapter drivers have .h and .c components.
Quoted 7 lines
Doug Gilbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
-------------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:[email protected] and delete this mail from your records.
----------------------------------------------------------------------------------------------------------------------