Use vfs_mount_error() in a few places to give more descriptive mount error
messages.
This commit is contained in:
parent
30d471e654
commit
1e370dbbdc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user