components/openstack/cinder/files/solaris/zfs.py
branchs11u3-sru
changeset 5430 b6b088be89d5
parent 5317 fa561e436e88
child 5431 a515b642a711
equal deleted inserted replaced
5429:1ae4cfbadda9 5430:b6b088be89d5
   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)