Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH V2] Add scratch directory for NFS upcall state storage
@ 2013-02-28 18:43 Rich Dubielzig
  2013-03-01 14:47 ` Richard Purdie
       [not found] ` <1362180962-13024-1-git-send-email-rich.dubielzig@windriver.com>
  0 siblings, 2 replies; 3+ messages in thread
From: Rich Dubielzig @ 2013-02-28 18:43 UTC (permalink / raw)
  To: Openembedded-core; +Cc: rich.dubielzig

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@windriver.com>
---
 .../nfs-utils/nfs-utils_1.2.3.bb                   |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
index 84c4464..138791b 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
@@ -12,7 +12,7 @@ DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"
 RDEPENDS_${PN} = "rpcbind"
 RRECOMMENDS_${PN} = "kernel-module-nfsd"
 
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.bz2 \
            file://nfs-utils-1.0.6-uclibc.patch \
@@ -53,6 +53,8 @@ RDEPENDS_${PN}-stats = "python"
 do_install_append () {
 	install -d ${D}${sysconfdir}/init.d
 	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
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH V2] Add scratch directory for NFS upcall state storage
  2013-02-28 18:43 [PATCH V2] Add scratch directory for NFS upcall state storage Rich Dubielzig
@ 2013-03-01 14:47 ` Richard Purdie
       [not found] ` <1362180962-13024-1-git-send-email-rich.dubielzig@windriver.com>
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2013-03-01 14:47 UTC (permalink / raw)
  To: Rich Dubielzig; +Cc: Openembedded-core

On Thu, 2013-02-28 at 10:43 -0800, Rich Dubielzig wrote:
> 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@windriver.com>
> ---
>  .../nfs-utils/nfs-utils_1.2.3.bb                   |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)

The subject line is missing the prefix ("nfs-utils: ") and this patch
doesn't apply against master which has nfs-utils 1.2.7?

Cheers,

Richard

> diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
> index 84c4464..138791b 100644
> --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
> +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
> @@ -12,7 +12,7 @@ DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"
>  RDEPENDS_${PN} = "rpcbind"
>  RRECOMMENDS_${PN} = "kernel-module-nfsd"
>  
> -PR = "r4"
> +PR = "r5"
>  
>  SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.bz2 \
>             file://nfs-utils-1.0.6-uclibc.patch \
> @@ -53,6 +53,8 @@ RDEPENDS_${PN}-stats = "python"
>  do_install_append () {
>  	install -d ${D}${sysconfdir}/init.d
>  	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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [V3] nfs-utils: Add scratch directory for NFS upcall state storage (denzil)
       [not found] ` <1362180962-13024-1-git-send-email-rich.dubielzig@windriver.com>
@ 2013-03-01 23:41   ` Dubielzig, Rich
  0 siblings, 0 replies; 3+ messages in thread
From: Dubielzig, Rich @ 2013-03-01 23:41 UTC (permalink / raw)
  To: Openembedded-core@lists.openembedded.org

I'm sorry to be filling up the forum like this.  Please disregard this patch, for some reason it is reverting my change instead of adding it.
________________________________________
From: Rich Dubielzig [rich.dubielzig@windriver.com]
Sent: Friday, March 01, 2013 3:36 PM
To: Openembedded-core@lists.openembedded.org
Cc: Dubielzig, Rich
Subject: [V3] nfs-utils: Add scratch directory for NFS upcall state storage (denzil)

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.

Signed-off-by: Rich Dubielzig <rich.dubielzig@windriver.com>
---
 .../nfs-utils/nfs-utils_1.2.3.bb                   |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
index 138791b..84c4464 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
@@ -12,7 +12,7 @@ DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"
 RDEPENDS_${PN} = "rpcbind"
 RRECOMMENDS_${PN} = "kernel-module-nfsd"

-PR = "r5"
+PR = "r4"

 SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.bz2 \
            file://nfs-utils-1.0.6-uclibc.patch \
@@ -53,8 +53,6 @@ RDEPENDS_${PN}-stats = "python"
 do_install_append () {
        install -d ${D}${sysconfdir}/init.d
        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
--
1.7.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-01 23:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-28 18:43 [PATCH V2] Add scratch directory for NFS upcall state storage Rich Dubielzig
2013-03-01 14:47 ` Richard Purdie
     [not found] ` <1362180962-13024-1-git-send-email-rich.dubielzig@windriver.com>
2013-03-01 23:41   ` [V3] nfs-utils: Add scratch directory for NFS upcall state storage (denzil) Dubielzig, Rich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox