mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
Unconditionally mount a UDF filesystem as read-only, instead of
returning an EROFS if we forget to mount it as read-only.
This commit is contained in:
parent
ebf417cf92
commit
073833a420
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151405
|
@ -199,8 +199,10 @@ udf_mount(struct mount *mp, struct thread *td)
|
|||
|
||||
opts = mp->mnt_optnew;
|
||||
|
||||
if ((mp->mnt_flag & MNT_RDONLY) == 0)
|
||||
return (EROFS);
|
||||
/*
|
||||
* Unconditionally mount as read-only.
|
||||
*/
|
||||
mp->mnt_flag |= MNT_RDONLY;
|
||||
|
||||
/*
|
||||
* No root filesystem support. Probably not a big deal, since the
|
||||
|
|
Loading…
Reference in a new issue