Project

General

Profile

Actions

Bug #200

closed

Add ignore option to mount

Added by andy almost 18 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hoi,

this patch adds an 'ignore' option to mount.
The actual infrustructure is already in place (MNT_IGNORE)
but it can't be set.
This means df(1) already has code to ignore MNT_IGNORE mounts
and an option to also show ignored mounts (-a), but the user
currently can't set the ignored option.
Below patch fixes that.
This is useful for procfs, amd, nullfs, filebacked fs, etc.
To test it with procfs you also need to recompile mount_std(8).
Use a fstab entry like:
proc /proc procfs rw,ignore 0 0

Some systems call the option 'hidden', but i don't think it
is semantically any better (both aren't very good), but at least
'ignore' corresponds to the MNT_IGNORE flag.

Actions #1

Updated by hasso over 16 years ago

Patch is available in
http://leaf.dragonflybsd.org/mailarchive/submit/2006-06/msg00006.html
Any objections to commit this?

Actions #2

Updated by dillon over 16 years ago

:Hasso Tepper <> added the comment:
:
:Patch is available in=20
:http://leaf.dragonflybsd.org/mailarchive/submit/2006-06/msg00006.html
:Any objections to commit this?
:
:----------
:status: unread -> chatting

It looks fine to me.  Though I wont personally be using it for procfs,
I can see definite uses for things like amd.
-Matt
Matthew Dillon
&lt;&gt;
Actions #3

Updated by swildner almost 15 years ago

Thanks, committed -> 5b5993715687ebe260d77ff5cbc8528e6af1e807

Actions

Also available in: Atom PDF