diff options
| author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2005-10-17 03:07:36 +0000 |
|---|---|---|
| committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2005-10-17 03:07:36 +0000 |
| commit | 073833a420e66648cd6ad344c5aa97ccac276394 (patch) | |
| tree | a8098b6ed29944b4b489d1664f906a0ff1cabc0e /sys/fs/udf/udf_vfsops.c | |
| parent | ebf417cf92eb8de186c53ee44a4b82c4c8958dc5 (diff) | |
Notes
Diffstat (limited to 'sys/fs/udf/udf_vfsops.c')
| -rw-r--r-- | sys/fs/udf/udf_vfsops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c index 6abe5498da81..890be0532c18 100644 --- a/sys/fs/udf/udf_vfsops.c +++ b/sys/fs/udf/udf_vfsops.c @@ -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 |
