Coverage for drivers/LVHDoFCoESR : 68%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
#!/usr/bin/python # # Copyright (C) Citrix Systems Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation; version 2.1 only. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # # LVHDoFCoESR: LVHD over Fibre Channel over Ethernet driver #
"VDI_CREATE", "VDI_DELETE", "VDI_ATTACH", "VDI_DETACH", "VDI_GENERATE_CONFIG", "VDI_SNAPSHOT", "VDI_CLONE", "VDI_RESIZE", "ATOMIC_PAUSE", "VDI_RESET_ON_BOOT/2", "VDI_UPDATE", "VDI_MIRROR", "VDI_CONFIG_CBT", "VDI_ACTIVATE", "VDI_DEACTIVATE"]
['allocation', 'Valid values are thick or thin(optional,\ defaults to thick)']]
'name': 'LVHD over FCoE', 'description': 'SR plugin which represents disks as VHDs on Logical \ Volumes within a Volume Group created on a FCoE LUN', 'vendor': 'Citrix Systems Inc', 'copyright': '(C) 2015 Citrix Systems Inc', 'driver_version': '1.0', 'required_api_version': '1.0', 'capabilities': CAPABILITIES, 'configuration': CONFIGURATION }
"""LVHD over FCoE storage repository""" if __name__ == '__main__': name = sys.argv[0] else: name = __name__ if name.endswith("LVMoFCoESR"): return type == "lvmofcoe" # for the initial switch from LVM if type == "lvhdofcoe": return True return False
'type' in self.original_srcmd.params['device_config'] and \ self.original_srcmd.dconf['type'] == "any":
SRCommand.run(LVHDoFCoESR, DRIVER_INFO) else: |