From adce9d7a14e5b03e0e41e5ae36ef9ceed55066ca Mon Sep 17 00:00:00 2001 From: rodrigc Date: Mon, 17 Oct 2005 03:07:36 +0000 Subject: Unconditionally mount a UDF filesystem as read-only, instead of returning an EROFS if we forget to mount it as read-only. --- sys/fs/udf/udf_vfsops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/fs') diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c index 6abe549..890be05 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 -- cgit v1.1