* sync mount option not applied to subdirectories
@ 2014-07-22 16:40 Jeff Terrace
0 siblings, 0 replies; only message in thread
From: Jeff Terrace @ 2014-07-22 16:40 UTC (permalink / raw)
To: linux-nfs
Using kernel 3.8.0-28-generic on Ubuntu, if I mount the root of my
server with the sync option:
mount -o vers=4,sync,sec=none -t nfs 192.168.1.198:/ /mnt/self
it gets applied properly:
$ cat /proc/mounts | grep nfs
192.168.1.198:/ /mnt/self nfs4
rw,sync,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=null,clientaddr=192.168.1.198,local_lock=none,addr=192.168.1.198
0 0
but if I try to mount a subdirectory:
mount -o vers=4,sync,sec=none -t nfs 192.168.1.198:/js.js /mnt/self
the sync option is lost:
$ cat /proc/mounts | grep nfs
192.168.1.198:/js.js /mnt/self nfs4
rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=null,clientaddr=192.168.1.198,local_lock=none,addr=192.168.1.198
0 0
If I mount the subdirectory with the noac option, which implies sync:
mount -o vers=4,noac,sec=none -t nfs 192.168.1.198:/js.js /mnt/self
then the sync option gets applied:
$ cat /proc/mounts | grep nfs
192.168.1.198:/js.js /mnt/self nfs4
rw,sync,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,hard,noac,proto=tcp,port=0,timeo=600,retrans=2,sec=null,clientaddr=192.168.1.198,local_lock=none,addr=192.168.1.198
0 0
The same subdirectory mount command using 2.6.32 on CentOS correctly
applies the sync option. Running the mount command with -vvv doesn't
show anything suspect. Is this a regression bug? Any idea what's going
on here?
Thanks,
Jeff
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-22 16:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-22 16:40 sync mount option not applied to subdirectories Jeff Terrace
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.