cifs: print client_guid in DebugData
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 27 Jun 2023 12:09:43 +0000 (12:09 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 28 Jun 2023 16:47:50 +0000 (11:47 -0500)
Having the ClientGUID info makes it easier to debug
issues related to a client on a server that serves a
number of clients.

This change prints the ClientGUID in DebugData.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Acked-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifs_debug.c

index b279f74..bfa8950 100644 (file)
@@ -330,6 +330,7 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
                spin_lock(&server->srv_lock);
                if (server->hostname)
                        seq_printf(m, "Hostname: %s ", server->hostname);
+               seq_printf(m, "\nClientGUID: %pUL", server->client_guid);
                spin_unlock(&server->srv_lock);
 #ifdef CONFIG_CIFS_SMB_DIRECT
                if (!server->rdma)