Bug 31588

Summary: change request to allow mount(8) to set the MNT_IGNORE flag
Product: Base System Reporter: guy <guy>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: guy, jamie
Priority: Normal    
Version: 4.4-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description guy 2001-10-29 13:40:01 UTC
sys/mount.h contains a MNT_IGNORE flag that is used by df(1) to
indicate that the filesystem should not be displayed in df's standard
output.  Currently this option is only used by the automounter
utilities to prevent automounted volumes appearing in df's output.

vn(4) vnodes allow us to mount, for example, ISO images.  As a result
of this, df's output can get cluttered, sometimes to a point where it
isn't really readable.

It would be useful, therefore, for mount(8) to be able to set the
MNT_IGNORE flag on mounted filesystems and thus selectively remove
them from df's output.

This facility does not exist at present, and so the Fix: section
contains a patch to the mount source code to allow for it.  It
introduces an 'ignore' option to mount, which toggles the MNT_IGNORE
flag.

How-To-Repeat: 
The patch is relative to /usr/src/sbin
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:57 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Jamie Landeg-Jones 2023-11-03 00:11:53 UTC
I was looking for the ability to do this, and stumbled on this report.

After dusting off the many years of cobwebs, I'm looking at refactoring the code for current versions.

Dunno if anyone will be interested, but I'm tagging myself anyway.