I have a question/issue relating to different mounts to the same server
export with different attributes.
My client is an Ubuntu distro (Linux wimc 2.6.20-16-generic #2 SMP Fri
Aug 31 00:55:27 UTC 2007 i686 GNU/Linux)
Suppose from the same linux client I want to have two different accesses
of the same export, but with different attributes. For example:
$ mount rdmx2:/public /mnt/public -o hard,rw
and
$ mount rdmx2:/public /mnt/scratch -o soft,ro
And also:
# mount rdmx2:/public/wim /mnt/wim -o soft,ro
Obviously, depending on which path I take to get at the underlying files
(/mnt/public vs. /mnt/scratch) I'd expect the attributes to be honored
and the behavior as specified.
However, what I'm seeing is that this is not the case. Dumping
information with the mount command shows the attributes as specified.
But cat'ing /proc/mounts shows the first attributes for all mounts.
$mount
rdmx2:/public on /mnt/public type nfs (rw,addr=172.24.0.71)
rdmx2:/public on /mnt/scratch type nfs (ro,soft,addr=172.24.0.71)
rdmx2:/public/wim on /mnt/wim type nfs (ro,soft,addr=172.24.0.71)
$ cat /proc/mounts
rdmx2:/public /mnt/public nfs
rw,vers=3,rsize=32768,wsize=32768,hard,intr,proto=tcp,timeo=600,retrans=
2,sec=sys,addr=rdmx2 0 0
rdmx2:/public /mnt/scratch nfs
rw,vers=3,rsize=32768,wsize=32768,hard,intr,proto=tcp,timeo=600,retrans=
2,sec=sys,addr=rdmx2 0 0
rdmx2:/public/wim /mnt/wim nfs
rw,vers=3,rsize=32768,wsize=32768,hard,intr,proto=tcp,timeo=600,retrans=
2,sec=sys,addr=rdmx2 0 0
and even though mounted as a read-only file system I can create a file
on it..:
$ echo junk > /mnt/wim/foo
$ cat /mnt/wim/foo
junk
$
Is there a known issue/problem or is this as designed?
Thanks,
Wim