diff options
Diffstat (limited to 'contrib/fuse-lib/misc.c')
-rw-r--r-- | contrib/fuse-lib/misc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/fuse-lib/misc.c b/contrib/fuse-lib/misc.c index 877c3880de0..28a9284bf96 100644 --- a/contrib/fuse-lib/misc.c +++ b/contrib/fuse-lib/misc.c @@ -10,6 +10,7 @@ #include <string.h> #include <limits.h> #include <fcntl.h> +#include "glusterfs.h" #include "fuse_kernel.h" #include "fuse-misc.h" @@ -37,7 +38,8 @@ calc_timeout_nsec (double t) } void -convert_fuse_file_lock (struct fuse_file_lock *fl, struct flock *flock) +convert_fuse_file_lock (struct fuse_file_lock *fl, struct gf_flock *flock, + uint64_t lk_owner) { memset (flock, 0, sizeof (struct flock)); flock->l_type = fl->type; @@ -48,4 +50,5 @@ convert_fuse_file_lock (struct fuse_file_lock *fl, struct flock *flock) else flock->l_len = fl->end - fl->start + 1; flock->l_pid = fl->pid; + flock->l_owner = lk_owner; } |