Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2014 14:08:49 -0700
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        Bryan Drewery <bdrewery@freebsd.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>
Subject:   Re: svn commit: r270183 - head/usr.sbin/mountd
Message-ID:  <CAGHfRMA8EoDMrb0FxW_wqnRH2hre35qvqKLUGdeHK8Swxdr8Xg@mail.gmail.com>
In-Reply-To: <201408192104.s7JL4WKo059223@svn.freebsd.org>
References:  <201408192104.s7JL4WKo059223@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 19, 2014 at 2:04 PM, Bryan Drewery <bdrewery@freebsd.org> wrote:
> Author: bdrewery
> Date: Tue Aug 19 21:04:31 2014
> New Revision: 270183
> URL: http://svnweb.freebsd.org/changeset/base/270183
>
> Log:
>   Avoid showing stale errors when nmount(2) fails.
>
>   Sometimes nmount(2) will fail without setting errmsg. The previous (ignored)
>   error would then be shown as the reason for the failed call if the next
>   nmount(2) also fails without [ENOENT,ENOTSUP].
>
>   An example is when there is a tmpfs mounted with -o size. vfs_filteropt() adds
>   'size' as an error in errmsg due to 'size' not being in tmpfs_updateopts. Then
>   tmpfs_mount returns [ENOTSUP] from nmount(2), which is then ignored. The next
>   call may race with an unmount causing an invalid [EINVAL] that then does log an
>   error, with the tmpfs errmsg.
>
>   The race itself is a separate issue to fix as it is expected to have an
>   [ENOENT] returned instead.
>
>   In this example the mount being shown is actually nullfs, not tmpfs that the
>   error is from.
>
>     mountd[740]: can't delete exports for /poudriere/data/.m/exp-head-commit-test-devel/04/.npkg: Invalid argument mount option <size> is unknown
>
>   It should only show:
>
>     mountd[740]: can't delete exports for /poudriere/data/.m/exp-head-commit-test-devel/04/.npkg: Invalid argument
>
>   MFC after:    2 weeks

Hmm -- I wonder if this is related to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191218 ... Guess I
get to retest that bug after this commit :)!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGHfRMA8EoDMrb0FxW_wqnRH2hre35qvqKLUGdeHK8Swxdr8Xg>