Make it possible to mount nullfs(5) using plain mount(8)
instead of mount_nullfs(8). Obviously you'd need to force mount(8) to not call mount_nullfs(8) to make use of it. Reviewed by: kib MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26934
This commit is contained in:
parent
a249b285b7
commit
e3c51151a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367137
@ -104,7 +104,9 @@ nullfs_mount(struct mount *mp)
|
||||
/*
|
||||
* Get argument
|
||||
*/
|
||||
error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len);
|
||||
error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, &len);
|
||||
if (error != 0)
|
||||
error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len);
|
||||
if (error || target[len - 1] != '\0')
|
||||
return (EINVAL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user