def get_OSTs(): path = lustre.proc_path + "/obdfilter/*-OST*" devices = [] for (device_name, device_path) in lustre.get_devices(type="OST"): devices.append(lustre_ost(name=device_name, path=device_path)) return devices
def get_OSTs() : path = lustre.proc_path+"/obdfilter/*-OST*" devices = [] for (device_name, device_path) in lustre.get_devices(type="OST") : devices.append(lustre_ost(name=device_name, path=device_path)) return devices
def _load_MDTs(self) : self.MDTs = [] for device_name, device_path in lustre.get_devices("MDT", self.fs_name) : self.MDTs.append(lustre_mdt(device_name)) #Check that we have local MDTs if not len(self.MDTs) : #throw an exception raise IOError("No MDTs configured")