[stgt] [PATCH 1/1] tgt: Add a new device parameter "readonly={0|1}"

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Sat Sep 18 10:50:22 CEST 2010


On Thu, 16 Sep 2010 08:17:13 -0700
Mike Anderson <andmike at linux.vnet.ibm.com> wrote:

> From: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> 
> Added a device parameter that allows a logical unit to be
> set to readonly. For DISK devices, this is communicated
> back to the initiator by setting the WP bit in the device
> specific byte in the mode sense header. It will also fail
> any WRITE6/10/12/16 calls with a DATA_PROTECT/ASC_WRITE_PROTECT
> 
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> Signed-off-by: Mike Anderson <andmike at linux.vnet.ibm.com>
> ---
>  doc/tgtadm.8.xml |   16 ++++++++++++++++
>  usr/sbc.c        |   44 ++++++++++++++++++++++++++++++++++++++++++--
>  usr/spc.c        |    8 +++++++-
>  usr/target.c     |    2 ++
>  usr/tgtd.h       |    1 +
>  5 files changed, 68 insertions(+), 3 deletions(-)

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list