Page MenuHomeFreeBSD

Clean up undocument df(1) feature supporting unmounted filesystems.
ClosedPublic

Authored by brooks on Nov 14 2016, 7:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 9, 5:58 PM
Unknown Object (File)
Thu, May 9, 5:58 PM
Unknown Object (File)
Thu, May 9, 5:58 PM
Unknown Object (File)
Thu, May 9, 2:46 AM
Unknown Object (File)
Mar 11 2024, 5:31 PM
Unknown Object (File)
Mar 11 2024, 5:31 PM
Unknown Object (File)
Mar 11 2024, 5:31 PM
Unknown Object (File)
Mar 8 2024, 2:27 AM
Subscribers
None

Details

Summary

Put the undocumented df feature of mounting filesystems from device nodes under an ifdef. Leave enabled.

Mount filesystems without executable permissions since they should never be used.

Add a free_iovec() function to reset iovec's.

The primary purpose is to call nmount() in a loop with new iovec's so
free_iovec takes arguments by reference and resets their values.

Use nmount(2) rather than the obsolete mount(2).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks retitled this revision from to Clean up undocument df(1) feature supporting unmounted filesystems..
brooks updated this object.
brooks edited the test plan for this revision. (Show Details)
brooks added reviewers: cem, allanjude.
cem edited edge metadata.

The intent is to allow this to be turned off and tested before being deprecated?

This revision is now accepted and ready to land.Nov 15 2016, 8:07 PM

Yes. It's a surprising and un-unixie feature. I'll also update the implementation in older releases where we can't remove it.

This revision was automatically updated to reflect the committed changes.