summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/fs/unionfs/union_vfsops.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c
index 2aa7a9c..70634c8 100644
--- a/sys/fs/unionfs/union_vfsops.c
+++ b/sys/fs/unionfs/union_vfsops.c
@@ -139,14 +139,18 @@ unionfs_domount(struct mount *mp, struct thread *td)
copymode = UNIONFS_TRADITIONAL; /* default */
ndp = &nd;
- if (mp->mnt_flag & MNT_ROOTFS)
+ if (mp->mnt_flag & MNT_ROOTFS) {
+ vfs_mount_error(mp, "Cannot union mount root filesystem");
return (EOPNOTSUPP);
+ }
/*
* Update is a no operation.
*/
- if (mp->mnt_flag & MNT_UPDATE)
+ if (mp->mnt_flag & MNT_UPDATE) {
+ vfs_mount_error(mp, "unionfs does not support mount update");
return (EOPNOTSUPP);
+ }
/*
* Get argument
OpenPOWER on IntegriCloud