equal
deleted
inserted
replaced
549 target_name) |
549 target_name) |
550 assert self._check_target(target_name, 'iSCSI') == 'Online' |
550 assert self._check_target(target_name, 'iSCSI') == 'Online' |
551 |
551 |
552 def create_export(self, context, volume): |
552 def create_export(self, context, volume): |
553 """Export the volume.""" |
553 """Export the volume.""" |
|
554 # If the volume is already exported there is nothing to do, as we |
|
555 # simply export volumes and they are universally available. |
|
556 if self._get_luid(volume): |
|
557 return |
|
558 |
554 zvol = self._get_zvol_path(volume) |
559 zvol = self._get_zvol_path(volume) |
555 |
560 |
556 # Create a Logical Unit (LU) |
561 # Create a Logical Unit (LU) |
557 self._stmf_execute('/usr/sbin/stmfadm', 'create-lu', zvol) |
562 self._stmf_execute('/usr/sbin/stmfadm', 'create-lu', zvol) |
558 luid = self._get_luid(volume) |
563 luid = self._get_luid(volume) |