diff options
author | Pavan Sondur <pavan@gluster.com> | 2009-12-06 13:29:08 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-12-06 11:33:03 -0800 |
commit | 9e38b5066d42d47f1011e1d1bc32ed9c41df57ec (patch) | |
tree | e37976b8068ddd3135ba3c085ff754fc6302d7a4 /xlators/features/locks/src/common.h | |
parent | fe37a56dd42294e26158a29c15a35aeb8cb38be2 (diff) |
features/locks: Implement release xlator callback.
This patch solves the lock bailout problem seen recently when autoconf tools were run. This is a workaround,
where 'flock' locks are removed in pl_release, if an explicit UNLCK call does not come. The complete fix would
be to allow 'fcntl' and 'flock' locks to operate in different domains.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 449 (Handle flock calls in a different domain from fcntl calls)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=449
Diffstat (limited to 'xlators/features/locks/src/common.h')
-rw-r--r-- | xlators/features/locks/src/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/locks/src/common.h b/xlators/features/locks/src/common.h index 32c27c7d1..46da9e78c 100644 --- a/xlators/features/locks/src/common.h +++ b/xlators/features/locks/src/common.h @@ -110,4 +110,7 @@ pl_print_locker (char *str, int size, xlator_t *this, call_frame_t *frame); void pl_print_inodelk (char *str, int size, int cmd, struct flock *flock, const char *domain); +unsigned long +fd_to_fdnum (fd_t *fd); + #endif /* __COMMON_H__ */ |