1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

My previous commit made it impossible to export / over NFS; this small

change fixes this.

Reported by:	Lin Jui-Nan Eric < ericlin dot jnlin at gmail dot com >
Submitted by:	Erik Trulsson < ertr1013 at student dot uu dot se > (commit is inspired by a patch from Erik)
Pointyhat to:	me
Reviewed by:	stable@
Approved by:	imp (mentor)
MFC after:	3 days
This commit is contained in:
Rink Springer 2006-10-19 19:46:49 +00:00
parent 8a512df52a
commit 300a6ee829
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163512

View File

@ -1918,7 +1918,12 @@ do_mount(struct exportlist *ep, struct grouplist *grp, int exflags,
iov[5].iov_base = fsb->f_mntfromname; /* "from" */
iov[5].iov_len = strlen(fsb->f_mntfromname) + 1;
while (nmount(iov, iovlen, fsb->f_flags) < 0) {
/*
* Remount the filesystem, but chop off the MNT_ROOTFS flag
* as it is used internally (and will result in an error if
* specified)
*/
while (nmount(iov, iovlen, fsb->f_flags & ~MNT_ROOTFS) < 0) {
if (cp)
*cp-- = savedc;
else