smb3: print tree id in debugdata in proc to be able to help logging
authorSteve French <stfrench@microsoft.com>
Sun, 20 May 2018 06:27:03 +0000 (01:27 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 30 May 2018 21:06:18 +0000 (16:06 -0500)
commite0386e449af3e893cd811c4c932829b981c83817
tree7f8a10f9f61468a01181b34be316f165bef7a44f
parentd683bcd3e5d157545af705e4807e38f8e511232c
smb3: print tree id in debugdata in proc to be able to help logging

When loooking at the logs for the new trace-cmd tracepoints for cifs,
it would help to know which tid is for which share (UNC name) so
update /proc/fs/cifs/DebugData to display the tid.
Also display Maximal Access which was missing as well.

Now the entry for typical entry for a tcon (in proc/fs/cifs/) looks
like:

1) \\localhost\test Mounts: 1 DevInfo: 0x20 Attributes: 0x1006f
PathComponentMax: 255 Status: 1 type: DISK
Share Capabilities: None Aligned, Partition Aligned, Share Flags: 0x0
tid: 0xe0632a55 Optimal sector size: 0x200 Maximal Access: 0x1f01ff

Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/smb2ops.c