debugging pseudo-file - viewing open file list from client
Steve French
smfrench at gmail.com
Sat Oct 20 05:12:01 UTC 2018
Was experimenting with a patch to display the open files on a Linux
network mount for debugging
Would something like this new pseudo-file for the client to allow
debugging problems where it is important to see the currently open
files from the client's perspective be useful as is? additional info
from dentry or inode needed? or ok with the terse output here?
sfrench at smf-Thinkpad-P51:~/$ ls /proc/fs/cifs/ -la
total 0
dr-xr-xr-x 2 root root 0 Oct 20 00:07 .
dr-xr-xr-x 9 root root 0 Oct 19 09:56 ..
-rw-r--r-- 1 root root 0 Oct 20 00:07 cifsFYI
-r--r--r-- 1 root root 0 Oct 20 00:07 DebugData
-rw-r--r-- 1 root root 0 Oct 20 00:07 LinuxExtensionsEnabled
-rw-r--r-- 1 root root 0 Oct 20 00:07 LookupCacheEnabled
-r--r--r-- 1 root root 0 Oct 20 00:07 open_files
-rw-r--r-- 1 root root 0 Oct 20 00:07 SecurityFlags
-rw-r--r-- 1 root root 0 Oct 20 00:07 Stats
-rw-r--r-- 1 root root 0 Oct 20 00:07 traceSMB
sfrench at smf-Thinkpad-P51:~/$ cat /proc/fs/cifs/open_files
Display debugging information for open files
--------------------------------------------
tcon: 0x15329b49 \\localhost\test
persistent fid: 0x7688e758 flags 0x8000 count 1 pid: 23477 uid: 1000
persistent fid: 0xd5b54934 flags 0x8000 count 1 pid: 23476 uid: 0
--
Thanks,
Steve
More information about the samba-technical
mailing list