in fiosynth_lib/fiosynth.py [0:0]
def getAllDataDrives(data, command, profile, dut):
# getAllDataDrives creates a list of devices separated by a ':'.
# An example of the string that is created in this function is
# '/dev/sdb:/dev/sdc:/dev/sdd:/dev/sde:/dev/sdf:'.
# If devices_in_global option is 'N' each device will be listed
# on a separate line.
if command == "ALL":
device = "disk"
# Skip boot device (sda)
else:
device = getRaidLevel(data)
dev_path = ""
dev_list = set()
for dev in data[device]:
if checkFileExist(dev, dut) is True:
if checkMounted(dev, dut) is False:
if profile["devices_in_global"] == "N":
dev_path += "[%s]\n" % dev
dev_path += "filename=%s\n" % dev
dut.device += "%s:" % dev
else:
if dev not in dev_list:
dev_list.add(dev)
dev_path += "%s:" % dev
return dev_path