Wind River Support Network

HomeDefectsLIN6-3597
Fixed

LIN6-3597 : wrlinux 5.0.1 - nfs-utils nfsstat location

Created: Sep 19, 2013    Updated: Mar 5, 2016
Resolved Date: Dec 8, 2013
Previous ID: LIN5-6086, LIN6-2916
Found In Version: 6.0
Fix Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

nfsstat is needed by both server and the client but it is only shipped with the server.
For other linux distributions Debian for example, it is included in the client package nfscommon.
Desired result: nfsstat to be moved to the client package - nfs-utils-client

Workaround

Same workaround with Defect WIND00434456:

1) layers/wr-base/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend
--- a/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend
+++ b/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bbappend
@@ -13,8 +13,8 @@ SRC_URI += "file://do-not-pass-CFLAGS-to-native.patch \
 
 inherit useradd
 
-USERADD_PACKAGES = "${PN}"
-USERADD_PARAM_${PN} = "-d /var/lib/nfs -r -s /bin/false rpcuser"
+USERADD_PACKAGES = "${PN}-client"
+USERADD_PARAM_${PN}-client = "-d /var/lib/nfs -r -s /bin/false rpcuser"
 
 do_install_append () {
        chown rpcuser ${D}/var/lib/nfs

2)layers/oe-core/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb

--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb
@@ -50,7 +50,8 @@ INHIBIT_AUTO_STAGE = "1"
 
 PACKAGES =+ "${PN}-client ${PN}-stats"
 FILES_${PN}-client = "${base_sbindir}/*mount.nfs* ${sbindir}/*statd \
-                      ${sbindir}/rpc.idpamd ${sbindir}/sm-notify \
+                      ${sbindir}/rpc.idmapd ${sbindir}/sm-notify \
+                      ${sbindir}/showmount ${sbindir}/nfsstat \
                       /var/lib/nfs /etc/init.d/nfscommon"
 FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat"
 RDEPENDS_${PN}-stats = "python"

Steps to Reproduce

check current nfsstat location
Live chat
Online