mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
31260bf042
If the operation is not an update, if neither r/w nor r/o mode is explicitly requested, if the error code hints at the possibility of the media being read-only, and if the fallback is allowed, then we can try to automatically downgrade to the readonly mode. This is especially useful for auto-mounting of removable media that sometimes can happen to be write-protected. The fallback to r/o is not enabled by default. It can be requested on a per-mount basis with a new mount option, 'autoro'. Or it can be globally allowed by setting vfs.default_autoro. Reviewed by: cem, kib MFC after: 3 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D13361 |
||
---|---|---|
.. | ||
extern.h | ||
getmntopts.3 | ||
getmntopts.c | ||
Makefile | ||
Makefile.depend | ||
mntopts.h | ||
mount_fs.c | ||
mount.8 | ||
mount.c | ||
pathnames.h | ||
vfslist.c |