[stgt] [PATCH] A LUN RESET will clear any PREVENTALLOWs that might be set.
Ronnie Sahlberg
ronniesahlberg at gmail.com
Sat Jul 21 04:36:07 CEST 2012
Whena LUN RESET command is received, walk the list of all itl nexuses and
clear the preventallow settings.
Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
---
usr/target.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/usr/target.c b/usr/target.c
index a4e7b77..e94c3ed 100644
--- a/usr/target.c
+++ b/usr/target.c
@@ -1386,6 +1386,7 @@ enum mgmt_req_result target_mgmt_request(int tid, uint64_t itn_id,
list_for_each_entry(itn_lu, &itn->itn_itl_info_list,
itn_itl_info_siblings) {
if (itn_lu->lu->lun == lun) {
+ itn_lu->prevent = 0;
ua_sense_add(itn_lu, ASC_POWERON_RESET);
break;
}
--
1.7.3.1
--
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