diff options
Diffstat (limited to 'libglusterfs/src/lkowner.h')
-rw-r--r-- | libglusterfs/src/lkowner.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libglusterfs/src/lkowner.h b/libglusterfs/src/lkowner.h index b6a950f5e12..9712f176f30 100644 --- a/libglusterfs/src/lkowner.h +++ b/libglusterfs/src/lkowner.h @@ -84,4 +84,10 @@ out: return is_null; } +static inline void +lk_owner_copy (gf_lkowner_t *dst, gf_lkowner_t *src) +{ + dst->len = src->len; + memcpy(dst->data, src->data, src->len); +} #endif /* _LK_OWNER_H */ |