[oe-commits] Rich Dubielzig : Add scratch directory for NFS upcall state storage

git at git.openembedded.org git at git.openembedded.org
Sat Mar 2 12:56:51 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: c7cb5cb92770615ffd302f737d0fef3f2300c321
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c7cb5cb92770615ffd302f737d0fef3f2300c321

Author: Rich Dubielzig <rich.dubielzig at windriver.com>
Date:   Thu Feb 28 10:43:47 2013 -0800

Add scratch directory for NFS upcall state storage

When the /var/lib/nfs/v4recovery directory is not present, NFSD cannot
record the upcall state and cannot end the 90-second grace period on
startup.  This is true even when NFS4 is not being served according to
nfsstat.

More details and discussion here:
https://lkml.org/lkml/2012/6/11/206

Signed-off-by: Rich Dubielzig <rich.dubielzig at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 .../nfs-utils/nfs-utils_1.2.7.bb                   |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.7.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.7.bb
index cf51f21..cd97810 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.7.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.7.bb
@@ -58,6 +58,8 @@ do_install_append () {
 	install -d ${D}${sysconfdir}/init.d
 	install -d ${D}${localstatedir}/lib/nfs/statd
 	install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver
+	# kernel code as of 3.8 hard-codes this path as a default
+	install -d ${D}/var/lib/nfs/v4recovery
 
 	# the following are built by CC_FOR_BUILD
 	rm -f ${D}${sbindir}/rpcdebug





More information about the Openembedded-commits mailing list