コード例 #1
0
ファイル: windows_remotefs.py プロジェクト: e0ne/os-brick
    def __init__(self,
                 mount_type,
                 root_helper=None,
                 execute=None,
                 *args,
                 **kwargs):
        mount_type_to_option_prefix = {
            'cifs': 'smbfs',
            'smbfs': 'smbfs',
        }

        self._local_path_for_loopback = kwargs.get('local_path_for_loopback',
                                                   False)

        if mount_type not in mount_type_to_option_prefix:
            raise exception.ProtocolNotSupported(protocol=mount_type)

        self._mount_type = mount_type
        option_prefix = mount_type_to_option_prefix[mount_type]

        self._mount_base = kwargs.get(option_prefix + '_mount_point_base')
        self._mount_options = kwargs.get(option_prefix + '_mount_options')

        self._smbutils = utilsfactory.get_smbutils()
        self._pathutils = utilsfactory.get_pathutils()
コード例 #2
0
ファイル: smbfs.py プロジェクト: dimara/os-brick
 def __init__(self, *args, **kwargs):
     super(WindowsSMBFSConnector, self).__init__(*args, **kwargs)
     # If this flag is set, we use the local paths in case of local
     # shares. This is in fact mandatory in some cases, for example
     # for the Hyper-C scenario.
     self._local_path_for_loopback = kwargs.get('local_path_for_loopback',
                                                False)
     self._remotefsclient = remotefs.WindowsRemoteFsClient(
         mount_type='smbfs', *args, **kwargs)
     self._smbutils = utilsfactory.get_smbutils()
コード例 #3
0
ファイル: smbfs.py プロジェクト: sachsgiri/os-brick
 def __init__(self, *args, **kwargs):
     super(WindowsSMBFSConnector, self).__init__(*args, **kwargs)
     # If this flag is set, we use the local paths in case of local
     # shares. This is in fact mandatory in some cases, for example
     # for the Hyper-C scenario.
     self._local_path_for_loopback = kwargs.get('local_path_for_loopback',
                                                False)
     self._remotefsclient = remotefs.WindowsRemoteFsClient(
         mount_type='smbfs',
         *args, **kwargs)
     self._smbutils = utilsfactory.get_smbutils()
コード例 #4
0
ファイル: smbfs.py プロジェクト: bopopescu/OpenStack-Ocata
    def __init__(self, *args, **kwargs):
        super(WindowsSmbfsDriver, self).__init__(*args, **kwargs)
        self.base = getattr(self.configuration,
                            'smbfs_mount_point_base',
                            CONF.smbfs_mount_point_base)
        opts = getattr(self.configuration,
                       'smbfs_mount_options',
                       CONF.smbfs_mount_options)
        self._remotefsclient = remotefs_brick.WindowsRemoteFsClient(
            'cifs', root_helper=None, smbfs_mount_point_base=self.base,
            smbfs_mount_options=opts, local_path_for_loopback=True)

        self._vhdutils = utilsfactory.get_vhdutils()
        self._pathutils = utilsfactory.get_pathutils()
        self._smbutils = utilsfactory.get_smbutils()
コード例 #5
0
ファイル: smbfs.py プロジェクト: Datera/cinder
    def __init__(self, *args, **kwargs):
        super(WindowsSmbfsDriver, self).__init__(*args, **kwargs)
        self.base = getattr(self.configuration,
                            'smbfs_mount_point_base',
                            CONF.smbfs_mount_point_base)
        opts = getattr(self.configuration,
                       'smbfs_mount_options',
                       CONF.smbfs_mount_options)
        self._remotefsclient = remotefs.WindowsRemoteFsClient(
            'cifs', root_helper=None, smbfs_mount_point_base=self.base,
            smbfs_mount_options=opts)

        self._vhdutils = utilsfactory.get_vhdutils()
        self._pathutils = utilsfactory.get_pathutils()
        self._smbutils = utilsfactory.get_smbutils()
コード例 #6
0
ファイル: smbfs.py プロジェクト: ebalduf/cinder-backports
    def __init__(self, *args, **kwargs):
        self._remotefsclient = None
        super(WindowsSmbfsDriver, self).__init__(*args, **kwargs)

        self.configuration.append_config_values(volume_opts)

        self.base = getattr(self.configuration,
                            'smbfs_mount_point_base')
        self._remotefsclient = remotefs_brick.WindowsRemoteFsClient(
            'cifs', root_helper=None, smbfs_mount_point_base=self.base,
            local_path_for_loopback=True)

        self._vhdutils = utilsfactory.get_vhdutils()
        self._pathutils = utilsfactory.get_pathutils()
        self._smbutils = utilsfactory.get_smbutils()
        self._diskutils = utilsfactory.get_diskutils()
コード例 #7
0
ファイル: smbfs.py プロジェクト: parthipan1/cinder
    def __init__(self, *args, **kwargs):
        self._remotefsclient = None
        super(WindowsSmbfsDriver, self).__init__(*args, **kwargs)

        self.configuration.append_config_values(volume_opts)

        self.base = getattr(self.configuration, 'smbfs_mount_point_base')
        self._remotefsclient = remotefs_brick.WindowsRemoteFsClient(
            'cifs',
            root_helper=None,
            smbfs_mount_point_base=self.base,
            local_path_for_loopback=True)

        self._vhdutils = utilsfactory.get_vhdutils()
        self._pathutils = utilsfactory.get_pathutils()
        self._smbutils = utilsfactory.get_smbutils()
        self._diskutils = utilsfactory.get_diskutils()
コード例 #8
0
ファイル: smbfs.py プロジェクト: wrightrocket/cinder
    def __init__(self, *args, **kwargs):
        self._remotefsclient = None
        super(WindowsSmbfsDriver, self).__init__(*args, **kwargs)

        self.configuration.append_config_values(volume_opts)

        self.base = getattr(self.configuration, 'smbfs_mount_point_base')
        self._remotefsclient = remotefs_brick.WindowsRemoteFsClient(
            'cifs',
            root_helper=None,
            smbfs_mount_point_base=self.base,
            local_path_for_loopback=True)

        self._vhdutils = utilsfactory.get_vhdutils()
        self._pathutils = utilsfactory.get_pathutils()
        self._smbutils = utilsfactory.get_smbutils()
        self._diskutils = utilsfactory.get_diskutils()

        thin_enabled = (CONF.backend_defaults.nas_volume_prov_type == 'thin')
        self._thin_provisioning_support = thin_enabled
        self._thick_provisioning_support = not thin_enabled
コード例 #9
0
ファイル: windows_remotefs.py プロジェクト: e0ne/os-brick
    def __init__(self, mount_type, root_helper=None,
                 execute=None, *args, **kwargs):
        mount_type_to_option_prefix = {
            'cifs': 'smbfs',
            'smbfs': 'smbfs',
        }

        self._local_path_for_loopback = kwargs.get('local_path_for_loopback',
                                                   False)

        if mount_type not in mount_type_to_option_prefix:
            raise exception.ProtocolNotSupported(protocol=mount_type)

        self._mount_type = mount_type
        option_prefix = mount_type_to_option_prefix[mount_type]

        self._mount_base = kwargs.get(option_prefix + '_mount_point_base')
        self._mount_options = kwargs.get(option_prefix + '_mount_options')

        self._smbutils = utilsfactory.get_smbutils()
        self._pathutils = utilsfactory.get_pathutils()
コード例 #10
0
 def __init__(self):
     self._smbutils = utilsfactory.get_smbutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._username_regex = re.compile(r'user(?:name)?=([^, ]+)')
     self._password_regex = re.compile(r'pass(?:word)?=([^, ]+)')
コード例 #11
0
 def __init__(self):
     super(PathUtils, self).__init__()
     self._smbutils = utilsfactory.get_smbutils()
     self._vmutils = utilsfactory.get_vmutils()
コード例 #12
0
ファイル: volumeops.py プロジェクト: tealover/compute-hyperv
 def __init__(self):
     self._smbutils = utilsfactory.get_smbutils()
     self._username_regex = re.compile(r'user(?:name)?=([^, ]+)')
     self._password_regex = re.compile(r'pass(?:word)?=([^, ]+)')
     super(SMBFSVolumeDriver, self).__init__()
コード例 #13
0
 def __init__(self):
     self._smbutils = utilsfactory.get_smbutils()
     self._username_regex = re.compile(r'user(?:name)?=([^, ]+)')
     self._password_regex = re.compile(r'pass(?:word)?=([^, ]+)')
     super(SMBFSVolumeDriver, self).__init__()
コード例 #14
0
ファイル: volumeops.py プロジェクト: chingachonga/nova
 def __init__(self):
     self._smbutils = utilsfactory.get_smbutils()
     self._vmutils = utilsfactory.get_vmutils()
     self._username_regex = re.compile(r'user(?:name)?=([^, ]+)')
     self._password_regex = re.compile(r'pass(?:word)?=([^, ]+)')
コード例 #15
0
 def __init__(self):
     super(PathUtils, self).__init__()
     self._smbutils = utilsfactory.get_smbutils()
     self._vmutils = utilsfactory.get_vmutils()
コード例 #16
0
ファイル: remotefs.py プロジェクト: Nexenta/cinder-nedge1.1
 def __init__(self, *args, **kwargs):
     super(WindowsRemoteFsClient, self).__init__(*args, **kwargs)
     self._smbutils = utilsfactory.get_smbutils()
     self._pathutils = utilsfactory.get_pathutils()