Commit c560c423 authored by James Bottomley's avatar James Bottomley

scsi_debug: num_parts, ptype and (re-)scans

From: 	Douglas Gilbert <dougg@torque.net>

Changes in version 1.73:
  - 'num_parts' parameter to specify 0 to 4 partitions
  - 'ptype' to specify (or change via sysfs) SCSI
    peripheral device type
  - support ability to increase the number of targets
    and/or luns then re-scan a scsi_debug host
  - remove redundant trailing spaces

The new facilties are described at:
http://www.torque.net/sg/sdebug26.html
A tarball of driver (version 1.73) is also there.
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
(conflict resolution)
parent c71a48f9
This diff is collapsed.
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
static int scsi_debug_slave_alloc(struct scsi_device *); static int scsi_debug_slave_alloc(struct scsi_device *);
static int scsi_debug_slave_configure(struct scsi_device *); static int scsi_debug_slave_configure(struct scsi_device *);
static void scsi_debug_slave_destroy(struct scsi_device *); static void scsi_debug_slave_destroy(struct scsi_device *);
static int scsi_debug_queuecommand(struct scsi_cmnd *, static int scsi_debug_queuecommand(struct scsi_cmnd *,
void (*done) (struct scsi_cmnd *)); void (*done) (struct scsi_cmnd *));
static int scsi_debug_ioctl(struct scsi_device *, int, void *); static int scsi_debug_ioctl(struct scsi_device *, int, void *);
static int scsi_debug_biosparam(struct scsi_device *, struct block_device *, static int scsi_debug_biosparam(struct scsi_device *, struct block_device *,
...@@ -17,9 +17,6 @@ static int scsi_debug_host_reset(struct scsi_cmnd *); ...@@ -17,9 +17,6 @@ static int scsi_debug_host_reset(struct scsi_cmnd *);
static int scsi_debug_proc_info(struct Scsi_Host *, char *, char **, off_t, int, int); static int scsi_debug_proc_info(struct Scsi_Host *, char *, char **, off_t, int, int);
static const char * scsi_debug_info(struct Scsi_Host *); static const char * scsi_debug_info(struct Scsi_Host *);
/*
* This driver is written for the lk 2.5 series
*/
#define SCSI_DEBUG_CANQUEUE 255 /* needs to be >= 1 */ #define SCSI_DEBUG_CANQUEUE 255 /* needs to be >= 1 */
#define SCSI_DEBUG_MAX_CMD_LEN 16 #define SCSI_DEBUG_MAX_CMD_LEN 16
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment