My understanding is /proc/mounts should list all mount options for a filesystem, including kernel defaults, so I was surprised to see that exec (among others) is not listed here?
For example, my root and home filesystems in fstab:
/dev/mapper/vg0-xen_root / ext4 noatime,errors=remount-ro 0 1 /dev/mapper/vg1-xen_home /home ext4 defaults 0 2 and how they appear in /proc/mounts:
/dev/mapper/vg0-xen_root / ext4 rw,noatime,errors=remount-ro,user_xattr,barrier=1,data=ordered 0 0 /dev/mapper/vg1-xen_home /home ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
The filesystem independent defaults documented in man mount:
defaults Use default options: rw, suid, dev, exec, auto, nouser, and async.
Why are some defaults (e.g. rw) listed but others (e.g. exec) are not? Is there a way to get the complete set of mount options associated with a filesystem?