summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2019-03-12 01:29:03 -0500
committerSteve French <stfrench@microsoft.com>2019-03-14 19:32:35 -0500
commitab7b10cf4fd14496292c62099f3a0a1c1ef90c0e (patch)
tree5dc8d477ee12ca90221818e547e302dcf66d96df /fs
parent257b78099be015762b1b19b3e4c58f90a9913fb7 (diff)
downloadlinux-ab7b10cf4fd14496292c62099f3a0a1c1ef90c0e.tar.gz
linux-ab7b10cf4fd14496292c62099f3a0a1c1ef90c0e.tar.bz2
linux-ab7b10cf4fd14496292c62099f3a0a1c1ef90c0e.zip
smb3: display volume serial number for shares in /proc/fs/cifs/DebugData
It can be helpful for debugging. According to MS-FSCC: "A 32-bit unsigned integer that contains the serial number of the volume. The serial number is an opaque value generated by the file system at format time" Signed-off-by: Steve French <stfrench@microsoft.com> Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/cifs_debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
index faeb1452cc2d..13c1288b04a7 100644
--- a/fs/cifs/cifs_debug.c
+++ b/fs/cifs/cifs_debug.c
@@ -115,6 +115,9 @@ static void cifs_debug_tcon(struct seq_file *m, struct cifs_tcon *tcon)
seq_puts(m, " type: CDROM ");
else
seq_printf(m, " type: %d ", dev_type);
+
+ seq_printf(m, "Serial Number: 0x%x", tcon->vol_serial_number);
+
if ((tcon->seal) ||
(tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) ||
(tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA))