search for: d_basename

Displaying 1 result from an estimated 1 matches for "d_basename".

Did you mean: do_basename
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...ot;find /dev/disk/by-id -mindepth 1 -not -name '*-part*' 2>/dev/null" + byid_list = subprocess.Popen(byid_list_cmd, shell=True, stdout=PIPE, stderr=STDOUT) + byid_list_output = byid_list.stdout.read() + for d in byid_list_output.split(): + d = os.readlink(d) + d_basename = os.path.basename(d) + udev_cmd = "udevadm info --name=/dev/%s --query=property | grep -q ^ID_BUS:" % d_basename + if os.system(udev_cmd): + devices="/dev/%s %s" % (d_basename, devices) + # FIXME: workaround for detecting cciss devices + if os.pat...