]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cifs: return DFS root session id in DebugData
authorPaulo Alcantara <pc@manguebit.com>
Tue, 14 Mar 2023 23:32:55 +0000 (20:32 -0300)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:21 +0000 (13:33 +0200)
commitde18f52f78a902647113aea5be08113331136b6f
treec95320a167efba8d94546961a019763aa6932f5c
parent5a8359437b1683cf75f2c94fa704702d9105bf2c
cifs: return DFS root session id in DebugData

BugLink: https://bugs.launchpad.net/bugs/2016876
commit f446a630802f154ef0087771683bd4f8e9d08384 upstream.

Return the DFS root session id in /proc/fs/cifs/DebugData to make it
easier to track which IPC tcon was used to get new DFS referrals for a
specific connection, and aids in debugging.

A simple output of it would be

  Sessions:
  1) Address: 192.168.1.13 Uses: 1 Capability: 0x300067   Session Status: 1
  Security type: RawNTLMSSP  SessionId: 0xd80000000009
  User: 0 Cred User: 0
  DFS root session id: 0x128006c000035

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Cc: stable@vger.kernel.org # 6.2
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/cifs/cifs_debug.c