• Steve French's avatar
    smb3: display network namespace in debug information · 7b38f6dd
    Steve French authored
    We recently had problems where a network namespace was deleted
    causing hard to debug reconnect problems.  To help deal with
    configuration issues like this it is useful to dump the network
    namespace to better debug what happened.
    
    So add this to information displayed in /proc/fs/cifs/DebugData for
    the server (and channels if mounted with multichannel). For example:
    
       Local Users To Server: 1 SecMode: 0x1 Req On Wire: 0 Net namespace: 4026531840
    
    This can be easily compared with what is displayed for the
    processes on the system. For example /proc/1/ns/net in this case
    showed the same thing (see below), and we can see that the namespace
    is still valid in this example.
    
       'net:[4026531840]'
    
    Cc: stable@vger.kernel.org
    Acked-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    7b38f6dd
cifs_debug.c 32.8 KB