From 0dbf120433dbe144f57702f4de68ff3a0409cae5 Mon Sep 17 00:00:00 2001 From: Clark Hale Date: Tue, 25 Apr 2017 18:33:43 -0400 Subject: [PATCH] Fixed the export_create behavior so that a LUN can be correctly mapped to more than one initiator WWN. --- targetd/block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targetd/block.py b/targetd/block.py index c979f49..b6e6ba6 100644 --- a/targetd/block.py +++ b/targetd/block.py @@ -233,7 +233,7 @@ def export_create(req, pool, vol, initiator_wwn, lun): # only add mapped lun if it doesn't exist for tmp_mlun in tpg_lun.mapped_luns: - if tmp_mlun.mapped_lun == lun: + if tmp_mlun.mapped_lun == lun and tmp_mlun.parent_nodeacl == na: break else: MappedLUN(na, lun, tpg_lun)