net-fs/nfs-utils: warn if client tracking will be broken
authorMatt Whitlock <gentoo@mattwhitlock.name>
Wed, 11 May 2016 00:32:58 +0000 (20:32 -0400)
committerMatt Turner <mattst88@gentoo.org>
Mon, 2 Sep 2019 07:08:13 +0000 (00:08 -0700)
commit5b2d7c955a8b3c0c422780d25bc2b1355f37df25
tree3c3fa942abdd9d4e8ecac386fe9fece2050db3a4
parent2724e477dbeef81ed5f8ad995e738c776379485c
net-fs/nfs-utils: warn if client tracking will be broken

NFSDv4 supports client tracking across server restarts using two
methods. The legacy method is in-kernel and requires CONFIG_CRYPTO_MD5,
which is not automatically selected by CONFIG_NFSD_V4 (see
https://bugzilla.kernel.org/show_bug.cgi?id=52271). The newer method
involves a usermode helper upcall program (nfsdcltrack), which is built
and installed only when USE="nfsdcld". If neither method is available,
then the NFS server does not support tracking clients across restarts,
and it emits a warning to the kernel log:

NFSD: unable to generate recoverydir name (-2).
NFSD: disabling legacy clientid tracking. Reboot recovery will not function correctly!

This commit introduces an ewarn in pkg_setup to warn the user if their
configuration will not support client tracking due to neither of these
options being enabled.

Closes: https://github.com/gentoo/gentoo/pull/1448
Closes: https://bugs.gentoo.org/582714
Signed-off-by: Matt Turner <mattst88@gentoo.org>
net-fs/nfs-utils/nfs-utils-2.4.1.ebuild