Date: Wed, 10 Mar 2021 19:32:17 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 251906] autofs: automounter always only adds to /var/db/mounttab but never clears it Message-ID: <bug-251906-227-Iz5Ok4kQNN@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-251906-227@https.bugs.freebsd.org/bugzilla/> References: <bug-251906-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251906 --- Comment #33 from Martin Birgmeier <d8zNeCFG@aon.at> --- Hello Robert, Please excuse me - I currently do not have the time to test this (but I am still happily running your previous patches :-)). I have briefly looked at = the patch and assume it will be working. It appears like quite a sledgehammer method, first because it seems to nondiscriminatorely unmount everything, a= nd second because it still uses an exec (popen). I believe it would be better to build a small library for dealing with the interaction of NFS mounts and maintaining the mounttab (and probably also t= he mountdtab on the server) file and call that from both the automounter and rpc.umntall etc. That library should also take care of possibly simultaneous accesses to these files and properly lock/unlock them so that they cannot g= et corrupted while they are being updated/in use. Finally, this library should also take care of counting any possible mounts - one and the same NFS client might (and in my case, does) mount the same export twice in different place= s, and this must be properly handled in both mounttab and mountdtab. Best regards, Martin --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251906-227-Iz5Ok4kQNN>