[PATCH][smb3 client] allow debugging session and tcon info to improve stats analysis and debugging

Steve French smfrench at gmail.com
Sun Nov 12 18:21:53 UTC 2023


Attached is a sample program (that uses the new cifs.ko IOCTL) to dump the
tree id for a mount to make it easier to look at traces, wireshark,
/proc/fs/cifs/Stats, /proc/fs/cifs/DebugData if you have more than one
mount (would be useful to add something similar to debugging tools and/or
smb-info or something new in cifs-utils).

e.g.

# ./get-tcon-inf /mnt2
ioctl completed. tid 0x47b3d0e2 session id: 0xf6cde60a

# cat /proc/fs/cifs/DebugData | grep "tid: 0x47b3d0e2" -C3
2) \\localhost\test Mounts: 1 DevInfo: 0x20 Attributes: 0x801007f
PathComponentMax: 255 Status: 1 type: DISK Serial Number: 0xaab31952
Share Capabilities: None Aligned, Partition Aligned, Share Flags: 0x0
tid: 0x47b3d0e2 Optimal sector size: 0x200 Maximal Access: 0x1f01ff
-- 
Thanks,

Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get-tcon-inf.c
Type: text/x-csrc
Size: 811 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20231112/7bb0891a/get-tcon-inf.c>


More information about the samba-technical mailing list