[SCSI] scsi_debug: add LBPRZ support
authorEric Sandeen <sandeen@redhat.com>
Thu, 8 Mar 2012 06:03:59 +0000 (00:03 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 27 Mar 2012 07:26:36 +0000 (08:26 +0100)
commitbe1dd78de5686c062bb3103f9e86d444a10ed783
tree38f8bc382c9594fa5c949ca2fe63b288a2736147
parent49d0e64b6a61acea3bcdd6b36be3972111edecc5
[SCSI] scsi_debug: add LBPRZ support

Add LBPRZ support to scsi_debug; i.e. read zeros for
unmapped blocks.

Rather than checking for unmapped blocks at
read time, this just zeroes them on the backing store
at unmap time so it behaves the same way.

This also adds a module parameter to disable it.

lbprz, "unmapped blocks return 0 on read (def=1)"

[jejb: fix whitespace errors]
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_debug.c