5 MI_RE = re.compile(r'(?P<mountid>\d+) (?P<parentid>\d+) (?P<majorminor>\d+:\d+) (?P<root>\S+) (?P<mountpoint>\S+) (?P<options>\S+) (?P<optional>(?:\S+\s)+)?- (?P<fstype>\S+) (?P<mountsrc>\S+) (?P<superopts>\S+)')
7 for line in file("/proc/self/mountinfo"):
14 if gd.get("root") != "/":
16 if gd.get("fstype") not in [ "ext2", "ext3", "ext4", "xfs", "jfs"]:
18 print gd["mountpoint"]