def fsstatParser(f):
    """
    Helper function to parse the output of fsstat.
    :param f: f is the output of fsstat
    :type f: str
    :return fsType:    This function will return the File System type of the
                        partition.
    :rtype fsType:  str
    """
    for line in f.splitlines():
        # find the partition type:
        indx = line.find("File System Type: ")
        if indx > -1:
            fsType = line[indx + len("File System Type: "):].strip()
            return fsType