Home
last modified time | relevance | path

Searched hist:"31260 bf042555bba6523d127ed80172bb97c1839" (Results 1 – 2 of 2) sorted by relevance

/freebsd/sbin/mount/
H A Dmount.8diff 31260bf042555bba6523d127ed80172bb97c1839 Tue Mar 27 16:31:42 CEST 2018 Andriy Gapon <avg@FreeBSD.org> vfs_donmount: in certain cases try r/o mount if r/w mount fails

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
/freebsd/sys/kern/
H A Dvfs_mount.cdiff 31260bf042555bba6523d127ed80172bb97c1839 Tue Mar 27 16:31:42 CEST 2018 Andriy Gapon <avg@FreeBSD.org> vfs_donmount: in certain cases try r/o mount if r/w mount fails

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