[stgt] [PATCH 7/8] If adding Unit Attention sense fails upon target destroy, just print error message and still return TGTADM_SUCCESS
nezhinsky at gmail.com
nezhinsky at gmail.com
Wed Apr 25 16:52:20 CEST 2012
From: Alexander Nezhinsky <alexandern at mellanox.com>
Signed-off-by: Alexander Nezhinsky <alexandern at mellanox.com>
---
usr/target.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/usr/target.c b/usr/target.c
index dd3ca91..660cac6 100644
--- a/usr/target.c
+++ b/usr/target.c
@@ -735,6 +735,9 @@ tgtadm_err tgt_device_destroy(int tid, uint64_t lun, int force)
ret = ua_sense_add(itn_lu,
ASC_REPORTED_LUNS_DATA_HAS_CHANGED);
+ if (ret)
+ eprintf("fail to add ua %" PRIu64 " %" PRIu64 "\n",
+ lun, itn->itn_id);
}
}
--
1.7.9.6
--
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