diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2006-12-09 17:21:25 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2006-12-09 17:21:25 +0000 |
commit | 930aa00466895efa8cce6dfd71f61d9b9e896104 (patch) | |
tree | 5fee46597409349225e121fe12507d0517296848 | |
parent | b2bd033255027b3b7b76e549b3f541e0fdc1ff3f (diff) | |
download | FreeBSD-src-930aa00466895efa8cce6dfd71f61d9b9e896104.zip FreeBSD-src-930aa00466895efa8cce6dfd71f61d9b9e896104.tar.gz |
Use vfs_mount_error() in a few places to give more descriptive mount error
messages.
-rw-r--r-- | sys/fs/unionfs/union_vfsops.c | 8 |
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 |