def _get_mounts():
    mounts = {}
    with salt.utils.fopen("/proc/mounts") as fhr:
        for line in fhr.readlines():
            device, mntpnt, fstype, options, fs_freq, fs_passno = line.strip().split(" ")
            if fstype != 'xfs':
                continue
            mounts[device] = {
                'mount_point': mntpnt,
                'options': options.split(","),
            }

    return mounts
List mounted filesystems.
dataset/ETHPy150Open saltstack/salt/salt/modules/xfs.py/_get_mounts