break
buf = buf.strip()
fields = re.split(pat, buf)
- print fields
dev = fields[-1]
if not dev.startswith("dm-") and dev.endswith("1") and dev not in in_vg:
devices.append("/dev/%s" % dev)
os.unlink(path)
except:
pass
+ try:
+ os.makedirs(os.path.dirname(path), 0755)
+ except:
+ pass
os.mknod(path, st.st_mode, st.st_rdev)