On Tue, Feb 10, 2009 at 8:55 PM, Mickey Mazarick <[email protected]> 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 _______________________________________________ Gluster-users mailing list [email protected] http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
