def get_fs_type_for_path(self, path): """Return the filesystem type a given path uses""" path_drive = get_drive_for_path(path) for drive in self.get_drives(): for partition in drive.get("children", []): if "/dev/%s" % partition["name"] == path_drive: return partition["fstype"]