[linux-cifs-client] Re: soft links behavior

Renato Golin renato at ebi.ac.uk
Wed Oct 24 12:36:57 GMT 2007


Steve French (smfltc) wrote:
> 1) Run /sbin/modinfo against the file cifs.ko
> (/lib/modules/<version>/kernels/fs/cifs/cifs.ko)

Hi Steve,

$ modinfo cifs
filename:       /lib/modules/2.6.22-14-generic/kernel/fs/cifs/cifs.ko
version:        1.49
description:    VFS to access servers complying with the SNIA CIFS
Specification e.g. Samba and Windows
license:        GPL
author:         Steve French <sfrench at us.ibm.com>
srcversion:     30616BA7D30E1F22CF9B850
depends:
vermagic:       2.6.22-14-generic SMP mod_unload 586
parm:           CIFSMaxBufSize:Network buffer size (not including
header). Default: 16384 Range: 8192 to 130048 (int)
parm:           cifs_min_rcv:Network buffers in pool. Default: 4 Range:
1 to 64 (int)
parm:           cifs_min_small:Small network buffers in pool. Default:
30 Range: 2 to 256 (int)
parm:           cifs_max_pending:Simultaneous requests to server.
Default: 50 Range: 2 to 256 (int)



> If CONFIG_PROC_FS is set in the build (which you will see turned on for
> Ubuntu and most common distros) you should have such the /proc/fs/cifs
> files as CONFIG_PROC_FS is the only dependency on this piece of code and
> it is called when the cifs.ko module is initialized (e.g. "modprobe cifs")

The module was not loaded, found /proc/fs/cifs now... sorry.


> This feature (nounix) does not have a dependency on newer mount.cifs so
> that should be new enough.
> 
> Note that there is a backported version of the fs/cifs directory which
> can be used to build cifs.ko on older kernels (in case this kernel is
> too old to have the "nounix" mount option and you don't want to turn it
> off via /proc/fs/cifs/LinuxExtensionsEnabled)

nounix and nolinux still not effective:

# cat /proc/fs/cifs/LinuxExtensionsEnabled
1

# umount sp && mount -t cifs -o
credentials=/home/renato/.smbcredentials,rw,exec,nolinux //srv/sp sp &&
ls -l sp
total 0
lrwxrwxrwx 1 root root 24 2007-09-26 11:20 misc1 -> /net/nfs/misc1
(...)

# umount sp && mount -t cifs -o
credentials=/home/renato/.smbcredentials,rw,exec,nounix //srv/sp sp &&
ls -l sp
total 0
lrwxrwxrwx 1 root root 24 2007-09-26 11:20 misc1 -> /net/nfs/misc1
(...)


But, using the /proc/fs/cifs/LinuxExtensionsEnabled works:


# echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled

# cat /proc/fs/cifs/LinuxExtensionsEnabled
0

# umount sp && mount -t cifs -o
credentials=/home/renato/.smbcredentials,rw,exec //srv/sp sp && ls -l sp
total 44
drwxrwxrwx 1 root root 0 2007-04-25 13:50 misc1
(...)



thanks,
--renato


-- 
Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm


More information about the linux-cifs-client mailing list