You are not logged in.

#1 2013-06-15 20:11:06

vibee
Member
Registered: 2013-06-15
Posts: 38

cifs mount with fstab -> very long boot time (fs-cache?)

Hi,

I have a NAS which provides some Samba shares. I want to mount those shares on startup, so I installed cifs-utils and added lines like the following to /etc/fstab:

//192.168.77.104/stuff	/mnt/stuff	cifs	credentials=/home/vibee/.smbcred,uid=1000,nounix,noserverino	0	0

Then booting takes 30-120 seconds, and after taking a look at dmesg, the problem seems to be fs-cache:

...
[    3.178427] EXT4-fs (sda4): re-mounted. Opts: data=ordered,commit=0
[    3.377545] r8169 0000:03:00.0 enp3s0: link up
[    3.377556] IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
[   91.023043] FS-Cache: Loaded
[   91.030913] FS-Cache: Netfs 'cifs' registered for caching
[   91.031011] Key type cifs.spnego registered
[   91.031018] Key type cifs.idmap registered

The problem even occurs when I add noauto,x-systemd.automount to options. Booting is way fast, but it takes that long time again when accessing the share for the first time.

I tried to add cache=none as well. I wonder that fs-cache is enabled by default, it should not accoring to mount.cifs man page, unless fsc is set.

Offline

Board footer

Powered by FluxBB