Date: Fri, 15 Sep 2017 19:40:22 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: Konstantin Belousov <kostikbel@gmail.com>, Edward Napierala <trasz@FreeBSD.org> Cc: Kirk McKusick <mckusick@mckusick.com>, freebsd-fs <freebsd-fs@FreeBSD.org>, "freebsd-arch@freebsd.org" <freebsd-arch@FreeBSD.org> Subject: Re: mount / unmount and mountcheckdirs() Message-ID: <317b4617-5f0b-bc9a-316f-db1d8cf661fa@FreeBSD.org> In-Reply-To: <20170915162752.GX78693@kib.kiev.ua> References: <134c7c6e-f4f1-ef38-cc50-0e56c27c9fb8@FreeBSD.org> <201709150314.v8F3Ea6B085072@chez.mckusick.com> <20170915092001.GK78693@kib.kiev.ua> <CAFLM3-rqg9Pso636Y3Vm6JT0WxWossEfvnsMmmAbC-jEkvyS7Q@mail.gmail.com> <20170915103037.GM78693@kib.kiev.ua> <CAFLM3-oPXg1we2f6comaJCyUQU3OMuSR6YgupQD3qDMbM5o%2B=g@mail.gmail.com> <20170915110033.GO78693@kib.kiev.ua> <CAFLM3-q8eUPRwBOJU-in-syb3vgBnNm23aoJ0XCA7=C=BQkT7A@mail.gmail.com> <20170915114533.GS78693@kib.kiev.ua> <CAFLM3-oEvMxvTNL7cRPrQsNonxe89NFXY_yirhWcHprrvaem2Q@mail.gmail.com> <20170915162752.GX78693@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On 15/09/2017 19:27, Konstantin Belousov wrote: > On Fri, Sep 15, 2017 at 05:06:10PM +0100, Edward Napierala wrote: >> It does, and that case might work - I'm not sure, but it might. But what >> happens afterwards, after the syscall that triggered the mount completes? >> You would still have a shell with cwd in that dir, now covered by another >> filesystem. Autofs doesn't do anything to "lift" the process to the newly >> mounted filesystem root. > The change of the current directory should have already triggered the action, > because it was preceeded by lookup. At least this is my understanding of > the flow. >From the earlier example I can only conclude that autofs does NOT do a mount on lookup in a sense of *vpp being a root of the mounted filesystem. My interpretation is the mounting is done only if there is a VOP_LOOKUP (or VOP_READDIR) with a mount point as a dvp. -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?317b4617-5f0b-bc9a-316f-db1d8cf661fa>