]> git.karo-electronics.de Git - linux-beck.git/commit
[SCSI] scsi_debug: Add "removable" parameter
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 6 Sep 2012 10:04:33 +0000 (12:04 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Sep 2012 08:11:05 +0000 (12:11 +0400)
commitd986788b2653ef76441c6b6ba1787164546735a6
treec7b84c1ebb9a5319c573ecd3c0eb744f81fc3d81
parenteafcde2103a2bfe27304664f331b10265d8e7bca
[SCSI] scsi_debug: Add "removable" parameter

Add "removable" module parameter to set the "removable" attribute of any
subsequently created debug block device. It is a writable driver option, so
that you can switch between removable and "fixed" media block devices in
between the add_host calls.

This is useful for being able to test the different behaviour/required
privileges in e. g. the udisks test suite.

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_debug.c