search for: dm_major

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

2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...nor_cmd = "ls -al %s|awk {'print $6'}" % dev_path + minor = subprocess.Popen("minor_dev_cmd", shell=True, stdout=PIPE, stderr=STDOUT) + minor = minor.stdout.read() + dm_device="" + rc = 1 + for dm in os.listdir("/dev/mapper/"): + dm_major_cmd = "ls -al %s |awk {'print $5'}" % dm + dm_major = subprocess.Popen("dm_major_dev_cmd", shell=True, stdout=PIPE, stderr=STDOUT) + dm_major = dm_major.stdout.read() + dm_major = dm_major.strip(",") + dm_minor_cmd = "ls -al %s|...