diff options
Diffstat (limited to 'libglusterfs/src/fd-lk.h')
| -rw-r--r-- | libglusterfs/src/fd-lk.h | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/libglusterfs/src/fd-lk.h b/libglusterfs/src/fd-lk.h index 7adbb5131..1d2ff794c 100644 --- a/libglusterfs/src/fd-lk.h +++ b/libglusterfs/src/fd-lk.h @@ -1,20 +1,11 @@ /* - Copyright (c) 2011-2012 Gluster, Inc. <http://www.gluster.com> + Copyright (c) 2008-2012 Red Hat, Inc. <http://www.redhat.com> This file is part of GlusterFS. - GlusterFS is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3 of the License, - or (at your option) any later version. - - GlusterFS is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see - <http://www.gnu.org/licenses/>. + This file is licensed to you under your choice of the GNU Lesser + General Public License, version 3 or any later version (LGPLv3 or + later), or the GNU General Public License, version 2 (GPLv2), in all + cases as published by the Free Software Foundation. */ #ifndef _FD_LK_H @@ -27,6 +18,7 @@ #include "mem-pool.h" #include "mem-types.h" #include "glusterfs.h" +#include "common-utils.h" #define get_lk_type(type) \ type == F_UNLCK ? "F_UNLCK" : (type == F_RDLCK ? "F_RDLCK" : "F_WRLCK") @@ -72,4 +64,7 @@ fd_lk_insert_and_merge (struct _fd *lk_ctx, int32_t cmd, int fd_lk_ctx_unref (fd_lk_ctx_t *lk_ctx); +gf_boolean_t +fd_lk_ctx_empty (fd_lk_ctx_t *lk_ctx); + #endif /* _FD_LK_H */ |
