def _reset_storage(storage): """Do reset the storage. FIXME: Call the DBus task instead of this function. :param storage: an instance of the Blivet's storage object """ # Set the ignored and exclusive disks. disk_select_proxy = STORAGE.get_proxy(DISK_SELECTION) storage.ignored_disks = disk_select_proxy.IgnoredDisks storage.exclusive_disks = disk_select_proxy.ExclusiveDisks storage.protected_devices = disk_select_proxy.ProtectedDevices storage.disk_images = disk_select_proxy.DiskImages # Reload additional modules. if not conf.target.is_image: iscsi.startup() fcoe_proxy = STORAGE.get_proxy(FCOE) fcoe_proxy.ReloadModule() if arch.is_s390(): zfcp_proxy = STORAGE.get_proxy(ZFCP) zfcp_proxy.ReloadModule() # Do the reset. storage.reset()
def _reset_storage(storage): """Do reset the storage. FIXME: Call the DBus task instead of this function. :param storage: an instance of the Blivet's storage object """ # Set the ignored and exclusive disks. disk_select_proxy = STORAGE.get_proxy(DISK_SELECTION) storage.ignored_disks = disk_select_proxy.IgnoredDisks storage.exclusive_disks = disk_select_proxy.ExclusiveDisks storage.protected_devices = disk_select_proxy.ProtectedDevices storage.disk_images = disk_select_proxy.DiskImages # Reload additional modules. if not conf.target.is_image: iscsi.startup() fcoe_proxy = STORAGE.get_proxy(FCOE) fcoe_proxy.ReloadModule() if arch.is_s390(): zfcp_proxy = STORAGE.get_proxy(ZFCP) zfcp_proxy.ReloadModule() # Do the reset. storage.reset()
def reset_storage(storage): """Reset the storage. FIXME: A temporary workaround for UI, :param storage: an instance of the Blivet's storage object """ # Update the config. update_storage_config(storage.config) # Set the ignored and exclusive disks. disk_select_proxy = STORAGE.get_proxy(DISK_SELECTION) storage.ignored_disks = disk_select_proxy.IgnoredDisks storage.exclusive_disks = disk_select_proxy.SelectedDisks # Reload additional modules. if not conf.target.is_image: iscsi.startup() fcoe_proxy = STORAGE.get_proxy(FCOE) fcoe_proxy.ReloadModule() if arch.is_s390(): zfcp_proxy = STORAGE.get_proxy(ZFCP) zfcp_proxy.ReloadModule() # Do the reset. storage.reset()
def _reload_modules(self): """Reload the additional modules.""" if conf.target.is_image: return iscsi.startup() fcoe.startup() if arch.is_s390(): zfcp.startup()
def _reload_modules(self): """Reload the additional modules.""" if conf.target.is_image: return iscsi.startup() fcoe.startup() if arch.is_s390(): zfcp.startup()
def reload_module(self): """Reload the iscsi module.""" log.debug("Start up the iSCSI module.") iscsi.startup()