sync mount option not applied to subdirectories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux