cifs module for linux kernel is reported to be actively developed. Still, as of samba 3.0.27a, there is no documented way to figure the version of the module `mount.cifs' actually uses. (If `cifs' kernel implements such an interface feature for user mode programs, samba documentation does not say so anyway.) One has to look at source to do so. Generally it will involve pretty complex procedure. Even in the best, if kernel is built straight from single (upstream) source package (which nearly never happens in practice), one has to at least download all of that package (pretty much network bandwidth and disk space in itself). If source to build from is obtained in a more complex way, like applying patches, possibly including complete new version of the module in question, one generally has to follow all of that source preparation procedure in binary package build specification. (Replacing version bundled with kernel with complete new one? After all, what else separate packages linked in <http://linux-cifs.samba.org/cifs/cifs_download.html> are for?) So, unless the module reports its version itself, figuring it may be very time consuming. Let alone figuring whether binary kernel module implements more specific features. (Including, but hardly limited to authentication with ntlmv2 password hashing.)
Seems like a reasonable request. Presumably we should update mount.cifs man page to note what the mount.cifs --help shows To display the version number of the mount helper: mount.cifs -V and also add text to say something like to retrieve the version of the cifs kernel module: modinfo /lib/modules/2.6.30/kernel/fs/cifs/cifs.ko or "cat /proc/fs/cifs/DebugData"
Are any of the options mentioned by Steve such as these, sufficient? modinfo /lib/modules/2.6.30/kernel/fs/cifs/cifs.ko cat /proc/fs/cifs/DebugData
Created attachment 4597 [details] Adds comments in mount.cifs helper manpage about how to obtain cifs module version Added info a about obtaining cifs mount helper version and cifs module version
Created attachment 4598 [details] Adds comments in mount.cifs helper manpage about how to obtain cifs module version Added info a about obtaining cifs mount helper version and cifs module version
Thanks, pushed to master. Next time, you might want to use "git format-patch", this way you get the credits :-) Karolin, IMO this is harmless for 3.4.2 :-) Volker
Sorry Karo, forgot to mention the bug number in the checkin message: The hash in master is a224392649ffb. Volker
Pushed, will be included in 3.4.2. Closing out bug report. Thanks!