All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bian Naimeng <biannm@cn.fujitsu.com>
To: linux-nfs@vger.kernel.org
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>,
	"J. Bruce Fields" <bfields@fieldses.org>
Subject: whether can NFS exports option 'nohide' work?
Date: Thu, 07 Jan 2010 16:58:28 +0800	[thread overview]
Message-ID: <4B45A234.8080503@cn.fujitsu.com> (raw)

Hi,

I want to use this option=81C but i find it doesn't work at RHEL5.4GA a=
nd Fedora12.

My /etc/exports like this:
# cat /etc/exports
  /nfsroot/nfsv4	127.0.0.1(rw,nohide,fsid=3D0)
  /nfsroot/nfsv4/dir1	127.0.0.1(rw,nohide,crossmnt)
  /nfsroot/nfsv4/dir2	127.0.0.1(rw,nohide,crossmnt)

Then:

# mkdir /nfsroot/nfsv4/dir1/tmpdir
# echo "best wishes" > /nfsroot/nfsv4/dir1/file1
# echo "happy new year" > /nfsroot/nfsv4/dir2/file2

# service nfs restart
# mount -t nfs4 127.0.0.1:/dir2 /nfsroot/nfsv4/dir1/tmpdir
# mount -t nfs4 127.0.0.1:/dir1 /mnt

There is file2 at /nfsroot/nfsv4/dir1/tmpdir, but nothing at /mnt/tmpdi=
r.
I'm not sure i have used it correctly, and whether it really work?=20
Thanks for your help.

--=20
Best Regards
Bian


             reply	other threads:[~2010-01-07  8:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07  8:58 Bian Naimeng [this message]
2010-01-08  5:02 ` whether can NFS exports option 'nohide' work? J. Bruce Fields
2010-01-08  9:49   ` Bian Naimeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B45A234.8080503@cn.fujitsu.com \
    --to=biannm@cn.fujitsu.com \
    --cc=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@fys.uio.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.