diff options
| author | Raghavendra G <rgowdapp@redhat.com> | 2013-11-14 17:10:09 +0530 | 
|---|---|---|
| committer | Anand Avati <avati@redhat.com> | 2013-11-26 10:26:44 -0800 | 
| commit | 1a2f51144fcbd920a6f3769d6b2f3ceeefdc220d (patch) | |
| tree | 8d234b3e579804b9a354c44d49d7ba2c2abbdeb5 /libglusterfs/src/glusterfs.h | |
| parent | 3f1ebe0298450cb8770a8753fe3a8a2519f78911 (diff) | |
core: add dht_is_linkfile helper procedure.
components other than distribute (like marker to exclude linkfiles
from being accounted) also need awareness of what constitutes a
linkfile. Hence its good to separate out this functionality into
core.
Change-Id: Ib944eeacc991bb1de464c9e73ee409fc7a689ff1
BUG: 1022995
Signed-off-by: Raghavendra G <rgowdapp@redhat.com>
Reviewed-on: http://review.gluster.org/6152
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs/src/glusterfs.h')
| -rw-r--r-- | libglusterfs/src/glusterfs.h | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index 8f05a222d58..99709738491 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -171,6 +171,16 @@   */  #define DEFAULT_GLUSTERD_SOCKFILE             DATADIR "/run/glusterd.socket" +/* features/marker-quota also needs to have knowledge of link-files so as to + * exclude them from accounting. + */ +#define DHT_LINKFILE_MODE        (S_ISVTX) + +#define IS_DHT_LINKFILE_MODE(iabuf) ((st_mode_from_ia ((iabuf)->ia_prot, \ +                                                       (iabuf)->ia_type) & ~S_IFMT)\ +                                     == DHT_LINKFILE_MODE) +#define DHT_LINKFILE_STR "linkto" +  /* NOTE: add members ONLY at the end (just before _MAXVALUE) */  typedef enum {          GF_FOP_NULL = 0,  | 
