List opened files

Status
Not open for further replies.

Tong

Dabbler
Joined
Sep 19, 2013
Messages
16
Need an easy way to list opened files. I tried fstat but it doesn't help me.
I need an easy way to list opened files from my shares

/mnt/ZFSVol1/Shares

I need to see individual files opened in this mount point.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
You'd have to go from a protocol basis. For example, nfsd and smbd handle their own locking and file manipulation(this is why you should never share the same files over nfsd and smbd as corruption could occur in some circumstances). If those daemons don't support listing the files then this isn't possible in FreeNAS. I'd look up the websites for the protocols you use and see if they have any way to list open files.
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
For samba the command you're looking for is smbstatus (execute as root).
 
Status
Not open for further replies.
Top