[KLUG Members] List Locks?

Bruce Smith members@kalamazoolinux.org
Thu, 27 Sep 2001 09:46:16 -0400


> I know how to list the processes using a file (fuser) and how to list the files
> a process is using (lsof, /proc/{pid}, etc...)  but is there a way to list the
> LOCKS on a file and what pid holds them?

The "lsof" man page claims to be able to reports locks on a file
under the "FD" (File Descriptor) heading.  Plus it has a section
titled "LOCKS" in it's man page.  Also see the "FD" section.

--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------