diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2006-12-09 17:21:25 +0000 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2006-12-09 17:21:25 +0000 |
commit | 1e370dbbdce5b66fe61109433a5e5a155ea28ea9 (patch) | |
tree | 5fee46597409349225e121fe12507d0517296848 /sys/fs/unionfs/union_vfsops.c | |
parent | 30d471e654e8bae62866e51697797c376da54bca (diff) | |
download | src-1e370dbbdce5b66fe61109433a5e5a155ea28ea9.tar.gz src-1e370dbbdce5b66fe61109433a5e5a155ea28ea9.zip |
Use vfs_mount_error() in a few places to give more descriptive mount error
messages.
Notes
Notes:
svn path=/head/; revision=165036
Diffstat (limited to 'sys/fs/unionfs/union_vfsops.c')
-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 2aa7a9c4a88f..70634c805c90 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 |