posix lock check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 10, 2009 at 8:55 PM, Mickey Mazarick <mic at digitaltadpole.com> wrote:
> Is there a way to check if a file has a posix lock on it? I know you are
> locking sections of a file but is there a way of listing which files
> have locks on them for an entire cluster (I *think* /proc/locks only
> applies to the local machine)?


Currently there is no way to list all the held locks. You can however
use the F_GETLK fcntl call to check if a lock has been held on a
particular file from any client in the cluster.

Avati



[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux