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
This commit is contained in:
parent
508075b079
commit
ac93e41b70
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user