smb3: display volume serial number for shares in /proc/fs/cifs/DebugData
[linux-2.6-block.git] / fs / cifs / cifs_debug.c
index faeb1452cc2da64afd4be490ba4018affca71934..13c1288b04a7318bde37f578e6a2c566fb692c07 100644 (file)
@@ -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))