From: Erik Bryer <erik_bryer@yahoo.com>
To: nfs@lists.sourceforge.net
Subject: [NFS] how to display fsid on client?
Date: Wed, 13 Jan 2010 14:14:25 -0800 (PST) [thread overview]
Message-ID: <55270.93264.qm@web37306.mail.mud.yahoo.com> (raw)
I'm using (client and server) CentOS 5 (2.6.18). If I set the fsid to a small integer in the server's exports files (e.g. 1, 19 or 0x10, 0xffff and so on), then exportfs -arf, then unmount and mount on the client, I get the same device number from running ``stat'' on the mount point. It goes like this (client=10.10.99.102):
root@server# cat /etc/exports
/home 10.10.99.102(ro,sync,no_root_squash)
root@client# cat /etc/fstab | grep server
server:/home /n/server/home nfs hard,intr,bg,sync,ro 0 0
root@client# mount /n/server/home
root@client# stat /n/server/home
File: `/n/server/home'
Size: 4096 Blocks: 16 IO Block: 4096 directory
Device: 31h/49d Inode: 2 Links: 8
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 301/ users)
Access: 2010-01-08 14:15:43.000000000 -0500
Modify: 2009-03-09 18:42:01.000000000 -0400
Change: 2009-11-23 19:45:51.000000000 -0500
root@server# cat /etc/exports
/home 10.10.99.102(ro,sync,no_root_squash,sid=0x19)
root@server# exportfs -arf
root@client# umount /n/server/home
root@client# mount /n/server/home
root@client# stat /n/server/home
[ same information as above, specifically the same Device # ]
I've tried this many times, read the faq, and so on. Do I misunderstand? Is the st_dev, "ID of device containing file", as read on the client not going to be the same as what is forced by "fsid=n" in the exports file?
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@lists.sourceforge.net is being discontinued.
Please subscribe to linux-nfs@vger.kernel.org instead.
http://vger.kernel.org/vger-lists.html#linux-nfs
next reply other threads:[~2010-01-13 22:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-13 22:14 Erik Bryer [this message]
[not found] ` <55270.93264.qm-0WRSi9NJipCvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org>
2010-01-13 23:32 ` [NFS] how to display fsid on client? Wendy Cheng
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=55270.93264.qm@web37306.mail.mud.yahoo.com \
--to=erik_bryer@yahoo.com \
--cc=nfs@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).