From 0991858fca6dc93de685e9527fb9ff47d77f616f Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Tue, 3 Mar 2009 16:00:58 +0530 Subject: added fgetxattr and fsetxattr FOPs Signed-off-by: Anand V. Avati --- libglusterfs/src/protocol.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'libglusterfs/src/protocol.h') diff --git a/libglusterfs/src/protocol.h b/libglusterfs/src/protocol.h index 82e42cfb1..35f172ab7 100644 --- a/libglusterfs/src/protocol.h +++ b/libglusterfs/src/protocol.h @@ -397,6 +397,17 @@ typedef struct { } __attribute__((packed)) gf_fop_setxattr_req_t; typedef struct { } __attribute__((packed)) gf_fop_setxattr_rsp_t; + +typedef struct { + uint64_t ino; + int64_t fd; + uint32_t flags; + uint32_t dict_len; + char dict[0]; +} __attribute__((packed)) gf_fop_fsetxattr_req_t; +typedef struct { } __attribute__((packed)) gf_fop_fsetxattr_rsp_t; + + typedef struct { uint64_t ino; uint32_t flags; @@ -437,6 +448,18 @@ typedef struct { } __attribute__((packed)) gf_fop_getxattr_rsp_t; +typedef struct { + uint64_t ino; + int64_t fd; + uint32_t namelen; + char name[0]; +} __attribute__((packed)) gf_fop_fgetxattr_req_t; +typedef struct { + uint32_t dict_len; + char dict[0]; +} __attribute__((packed)) gf_fop_fgetxattr_rsp_t; + + typedef struct { uint64_t ino; char path[0]; -- cgit