diff options
Diffstat (limited to 'libglusterfs/src')
| -rw-r--r-- | libglusterfs/src/gf-dirent.h | 1 | ||||
| -rw-r--r-- | libglusterfs/src/glusterfs.h | 2 | 
2 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/gf-dirent.h b/libglusterfs/src/gf-dirent.h index 36a5a629cf2..26cb5a66872 100644 --- a/libglusterfs/src/gf-dirent.h +++ b/libglusterfs/src/gf-dirent.h @@ -48,6 +48,7 @@ struct _gf_dirent_t {  	char                                 d_name[0];  }; +#define DT_ISDIR(mode) (mode == DT_DIR)  gf_dirent_t *gf_dirent_for_name (const char *name);  void gf_dirent_free (gf_dirent_t *entries); diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index 5ce2fe227f4..8d6abdb0454 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -81,6 +81,8 @@  #define GF_XATTR_NODE_UUID_KEY  "trusted.glusterfs.node-uuid"  #define GF_XATTR_VOL_ID_KEY   "trusted.glusterfs.volume-id" +#define GF_READDIR_SKIP_DIRS       "readdir-filter-directories" +  #define XATTR_IS_PATHINFO(x)  (strncmp (x, GF_XATTR_PATHINFO_KEY,       \                                          strlen (GF_XATTR_PATHINFO_KEY)) == 0)  #define XATTR_IS_NODE_UUID(x) (strncmp (x, GF_XATTR_NODE_UUID_KEY,      \  | 
