From ac93e41b70d27c077ac295a1c288938156f241b0 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 25 Feb 2010 15:37:49 +0000 Subject: core: Add setattr mode test macros Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 597 (miscellaneous fixes for xlators to work well with NFS xlator) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=597 --- libglusterfs/src/xlator.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libglusterfs/src/xlator.h') diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h index b8222911a59..26df4c71769 100644 --- a/libglusterfs/src/xlator.h +++ b/libglusterfs/src/xlator.h @@ -46,6 +46,13 @@ #define GF_SET_ATTR_ATIME 0x10 #define GF_SET_ATTR_MTIME 0x20 +#define gf_attr_mode_set(mode) ((mode) & GF_SET_ATTR_MODE) +#define gf_attr_uid_set(mode) ((mode) & GF_SET_ATTR_UID) +#define gf_attr_gid_set(mode) ((mode) & GF_SET_ATTR_GID) +#define gf_attr_size_set(mode) ((mode) & GF_SET_ATTR_SIZE) +#define gf_attr_atime_set(mode) ((mode) & GF_SET_ATTR_ATIME) +#define gf_attr_mtime_set(mode) ((mode) & GF_SET_ATTR_MTIME) + struct _xlator; typedef struct _xlator xlator_t; struct _dir_entry_t; -- cgit