components/openstack/cinder/files/solaris/zfs.py
changeset 4982 df1be607c345
parent 4545 538c0aeae836
child 4983 db2589571faa
equal deleted inserted replaced
4981:2da2d7a85ba2 4982:df1be607c345
   519     def __init__(self, *args, **kwargs):
   519     def __init__(self, *args, **kwargs):
   520         super(ZFSISCSIDriver, self).__init__(*args, **kwargs)
   520         super(ZFSISCSIDriver, self).__init__(*args, **kwargs)
   521 
   521 
   522     def create_export(self, context, volume):
   522     def create_export(self, context, volume):
   523         """Export the volume."""
   523         """Export the volume."""
       
   524         # If the volume is already exported there is nothing to do, as we
       
   525         # simply export volumes and they are universally available.
       
   526         if self._get_luid(volume):
       
   527             return
       
   528 
   524         zvol = self._get_zvol_path(volume)
   529         zvol = self._get_zvol_path(volume)
   525 
   530 
   526         # Create a Logical Unit (LU)
   531         # Create a Logical Unit (LU)
   527         self._stmf_execute('/usr/sbin/stmfadm', 'create-lu', zvol)
   532         self._stmf_execute('/usr/sbin/stmfadm', 'create-lu', zvol)
   528         luid = self._get_luid(volume)
   533         luid = self._get_luid(volume)