[Gluster-users] posix lock check

Anand Avati avati at gluster.com
Tue Feb 10 15:35:10 UTC 2009


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




More information about the Gluster-users mailing list