summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-02-25 15:37:49 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-04 03:12:25 -0800
commitac93e41b70d27c077ac295a1c288938156f241b0 (patch)
tree1acb346f38f2fa99eda591c871c65f205fe05b02 /libglusterfs
parent508075b079d731f7aa5fa36d7295fceeef2c3c1d (diff)
core: Add setattr mode test macros
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> 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
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/xlator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h
index b8222911a..26df4c717 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;