HomeFreeBSD

Fix MNT_IGNORE for devfs, fdescfs and nullfs

Description

Fix MNT_IGNORE for devfs, fdescfs and nullfs

The MNT_IGNORE flag can be used to mark certain filesystem mounts so
that utilities such as df(1) and mount(8) can filter out those mounts by
default. This can be used, for instance, to reduce the noise from
running container workloads inside jails which often have at least three
and sometimes as many as ten mounts per container.

The flag is supplied by the nmount(2) system call and is recorded so
that it can be reported by statfs(2). Unfortunately several filesystems
override the default behaviour and mask out the flag, defeating its
purpose. This change preserves the MNT_IGNORE flag for those filesystems
so that it can be reported correctly.

MFC after: 1 week

(cherry picked from commit b5c4616582cebdcf4dee909a3c2f5b113c4ae59e)

Details

Provenance
dfrAuthored on Aug 26 2023, 9:32 AM
desCommitted on Sat, Apr 27, 2:58 PM
Parents
rG90499f6efd57: Support ARP for 802 networks
Branches
Unknown
Tags
Unknown