Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2020 18:45:57 -0400
From:      J David <j.david.lists@gmail.com>
To:        Rick Macklem <rmacklem@uoguelph.ca>
Cc:        Brandon Bergren <bdragon@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: pidfile_open() usage in "mount"
Message-ID:  <CABXB=RTceeJWrcFA-jTyfQnBgTc9rrpesq2BU1dizF3VyJ__KQ@mail.gmail.com>
In-Reply-To: <QB1PR01MB3364C5F4640D161DEE96E579DD540@QB1PR01MB3364.CANPRD01.PROD.OUTLOOK.COM>
References:  <CABXB=RRM7YusQL1gGVGD4s9xi9AB4F5AR5-Jqbp4G1WTZWWA%2BQ@mail.gmail.com> <20200826144013.GV2551@kib.kiev.ua> <dcf65725-af6f-4a89-bcac-b1ca46d49cae@www.fastmail.com> <CABXB=RQe8Epvr=7oZv9C3D4NXyd9TRvRctxM0yy_c5oB_%2B7P4A@mail.gmail.com> <QB1PR01MB3364C5F4640D161DEE96E579DD540@QB1PR01MB3364.CANPRD01.PROD.OUTLOOK.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 26, 2020 at 5:15 PM Rick Macklem <rmacklem@uoguelph.ca> wrote:
> The reason is that, if the local file system being mounted happens to be in
> /etc/exports, then /etc/exports has to be re-loaded for the update.

That makes sense.

> Ideally, all local file systems would be mounted and then one HUP would
> be sent to mountd, but that isn't the way it has worked for a long time
> and changing it would be a POLA violation, imho.

Currently, it happens once per invocation of /sbin/mount, at the very
end, so if you do something that causes multiple mounts (i.e. the -a
flag), it only happens once.  That's a good compromise, and I agree
that decoupling it to happen somewhere else would not be a good idea,
both for the reason you identify, and also because it just doesn't
seem like local filesystems follow the fixed, from-boot-to-shutdown
model that they used to.

Thanks!



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