summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver
Commit message (Collapse)AuthorAgeFilesLines
* nfs-utils: Improve handling when no exported fileysystemsRichard Purdie2019-10-281-1/+1
| | | | | | | | | Ensure /etc/exports exists and is readable before calling exportfs to avoid errors. (From OE-Core rev: 723f2464f746624ece06caa9752910a52f290f95) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nfs-utils: remove -f exports from nfsserverSaul Wold2017-01-161-1/+1
| | | | | | | | | | | | | The upstream project remove that option as it was quote: It is completely ineffective. [YOCTO #10843] (From OE-Core rev: 52a12c6e5360f3f60b5610eb9ad6edaa076427c1) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nfs-utils: Reexport all directories when startLi Wang2015-07-011-0/+1
| | | | | | | | | | call "exportfs -r" to reexport all directories when start the nfsserver. This change does follow debian and nfs-utils stardard. (From OE-Core rev: 967aa21662930fe5584485d820eb7959a29815bb) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nfs-utils: separate package as Debain styleZhang Xiao2013-12-091-43/+3
| | | | | | | | | | | | | | Move binaries used for both nfs client and server into client package. Add an init script for client package and move necessary progress from server's init script to this one. Make client package more powerful and let server package depends on client one, as Debain does. (From OE-Core rev: 39bb7e32c5eb930981392cec70a063e8dac152b7) Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nfs-utils: modify nfsserver init script indentQiang Chen2013-10-301-6/+6
| | | | | | | | | | | | | | | | | | Using sysvinit testing service status, nfsserver status allways display as [?] unknown. This is because sysvinit package check whether service's init script supporting status function or not by: grep -qs "\Wstatus)" "$SERVICE" So, this commit modified the indent for status etc, as most service's init script does. (From OE-Core rev: a6b02fe439fa13c8482383fba2bfdcb0e9742141) Signed-off-by: Qiang Chen <qiang.chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nfs-utils: nfsserver restart should kill and recreate nfsd kernel threadsQiang Chen2013-10-261-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nfsserver restart without killing kernel threads worked when portmap was the rpc publishing process and portmap was restarted. When rpcbind replaces portmap, nfsserver restart in this way does not work after an rpcbind restart. Steps to reproduce: 1). Make ext3 filesystem image on local host. cd /root dd if=/dev/zero of=test bs=1024K count=50 mkfs.ext3 -F test 2). runqemu qemux86-64 mkdir /mnt/wrtest mount -t ext3 -o loop test /mnt/wrtest echo "/mnt/wrtest *(sync,rw,no_subtree_check,no_root_squash)" > /etc/exports /etc/init.d/rpcbind restart /etc/init.d/nfsserver restart showmount -e localhost mkdir wrtest mount -t nfs localhost:/mnt/wrtest wrtest mount: mounting localhost:/mnt/wrtest on wrtest failed: Connection refused Modifying the nfsserver script to kill and restart kernel threads on restart makes the problem go away and is consistent with current RHEL/SUSE and Ubuntu/Debian mechanisms of handling the nfs server. (From OE-Core rev: 1a96b8d7dfc490fc61bbd470a8b09065750cd563) Signed-off-by: Rich Dubielzig <rich.dubielzig@windriver.com> Signed-off-by: Qiang Chen <qiang.chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nfs-utils: Stop rpc.statd correctlyQiang Chen2013-10-261-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An incorrect process name in the nfsserver initscript prevented rpc.statd from being shut down. root@qemux86-64:~# /etc/init.d/nfsserver start creating NFS state directory: done starting 8 nfsd kernel threads: done starting mountd: done starting statd: done root@qemux86-64:~# ps | grep rpc.statd 650 root 10532 S /usr/sbin/rpc.statd 654 root 4720 S grep rpc.statd root@qemux86-64:~# /etc/init.d/nfsserver stop stopping statd: done stopping mountd: done stopping nfsd: done root@qemux86-64:~# ps | grep rpc.statd 650 root 10532 S /usr/sbin/rpc.statd 662 root 4720 S grep rpc.statd As this daemon drops a pid file,simply use that instead. Also add some initialization checks so the daemons are not left partially started in the absence of kernel nfsd support. (From OE-Core rev: 37e70a28e9cfc773bd70f09d7129295ce891ae18) Signed-off-by: Andy Ross <andy.ross@windriver.com> Signed-off-by: Qiang Chen <qiang.chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nfs-utils: add init.d/nfsserver status command for LSB complianceJackie Huang2013-08-261-0/+11
| | | | | | | | | (From OE-Core rev: d5132337fa08ee74eaebadaeaecb6b4f5b2c5190) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nfs-utils: don't try to unload nfsd moduleAndreas Oberritter2012-05-031-8/+0
| | | | | | | | | | | * When nfsserver get's stopped, "modprobe -r nfsd" may hang indefinitely. As there's no need to unload the module, just remove the call to modprobe. (From OE-Core rev: aba81b64679ec0b1809946cb480e261af47f7625) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nfs-utils: fix "sh: bad number" error on start/stop of nfsserverPaul Eggleton2011-03-181-1/+1
| | | | | | | | | | | Adds a test to avoid the "sh: bad number" error message during service start or stop of nfsserver when there is no NFS_SERVERS value set in /etc/default/nfsd. (From OE-Core rev: 0f2debd9360abac54d3e44551af309f0bdde96e7) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nfs-utils: fix nfs server initscriptQing He2010-10-201-3/+3
| | | | | | fixes [BUGID #483] Signed-off-by: Qing He <qing.he@intel.com>
* packages: Separate out most of the remaining packages into recipesRichard Purdie2010-09-011-0/+161
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>