summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs/null_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/nullfs/null_vfsops.c')
-rw-r--r--sys/fs/nullfs/null_vfsops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index ea49163..d834d04 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -85,6 +85,8 @@ nullfs_mount(struct mount *mp, struct thread *td)
NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp);
+ if (mp->mnt_flag & MNT_ROOTFS)
+ return (EOPNOTSUPP);
/*
* Update is a no-op
*/
OpenPOWER on IntegriCloud