diff options
author | Anand V. Avati <avati@blackhole.gluster.com> | 2010-03-16 09:46:30 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-03-16 08:31:20 -0700 |
commit | 49465d7136098b40166231d131ad10cc0f55a45d (patch) | |
tree | 25e00f04a04368bff9970547146ec02a765f5e96 /libglusterfs | |
parent | 4b690df4e2055ce42557c303e3738e11c7aec172 (diff) |
xlator.h: whitespace cleanup
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 361 (GlusterFS 3.0 should work on Mac OS/X)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/xlator.h | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/libglusterfs/src/xlator.h b/libglusterfs/src/xlator.h index 26df4c71769..b6e10385512 100644 --- a/libglusterfs/src/xlator.h +++ b/libglusterfs/src/xlator.h @@ -63,9 +63,7 @@ struct _loc; typedef struct _loc loc_t; -typedef int32_t (*event_notify_fn_t) (xlator_t *this, - int32_t event, - void *data, +typedef int32_t (*event_notify_fn_t) (xlator_t *this, int32_t event, void *data, ...); #include "list.h" @@ -76,6 +74,7 @@ typedef int32_t (*event_notify_fn_t) (xlator_t *this, #include "fd.h" #include "globals.h" + struct _loc { const char *path; const char *name; @@ -676,13 +675,13 @@ typedef int32_t (*fop_finodelk_t) (call_frame_t *frame, struct flock *flock); typedef int32_t (*fop_entrylk_t) (call_frame_t *frame, - xlator_t *this, + xlator_t *this, const char *volume, loc_t *loc, const char *basename, entrylk_cmd cmd, entrylk_type type); typedef int32_t (*fop_fentrylk_t) (call_frame_t *frame, - xlator_t *this, + xlator_t *this, const char *volume, fd_t *fd, const char *basename, entrylk_cmd cmd, entrylk_type type); @@ -854,7 +853,7 @@ typedef int32_t (*dumpop_fd_t) (xlator_t *this); typedef int32_t (*dumpop_inodectx_t) (xlator_t *this, inode_t *ino); - + struct xlator_dumpops { dumpop_priv_t priv; dumpop_inode_t inode; @@ -869,41 +868,44 @@ typedef struct xlator_list { /* Add possible new type of option you may need */ typedef enum { - GF_OPTION_TYPE_ANY = 0, - GF_OPTION_TYPE_STR, - GF_OPTION_TYPE_INT, - GF_OPTION_TYPE_SIZET, - GF_OPTION_TYPE_PERCENT, + GF_OPTION_TYPE_ANY = 0, + GF_OPTION_TYPE_STR, + GF_OPTION_TYPE_INT, + GF_OPTION_TYPE_SIZET, + GF_OPTION_TYPE_PERCENT, GF_OPTION_TYPE_PERCENT_OR_SIZET, - GF_OPTION_TYPE_BOOL, - GF_OPTION_TYPE_XLATOR, - GF_OPTION_TYPE_PATH, - GF_OPTION_TYPE_TIME, + GF_OPTION_TYPE_BOOL, + GF_OPTION_TYPE_XLATOR, + GF_OPTION_TYPE_PATH, + GF_OPTION_TYPE_TIME, GF_OPTION_TYPE_DOUBLE, GF_OPTION_TYPE_INTERNET_ADDRESS, } volume_option_type_t; + #define ZR_VOLUME_MAX_NUM_KEY 4 #define ZR_OPTION_MAX_ARRAY_SIZE 64 /* Each translator should define this structure */ typedef struct volume_options { - char *key[ZR_VOLUME_MAX_NUM_KEY]; + char *key[ZR_VOLUME_MAX_NUM_KEY]; /* different key, same meaning */ - volume_option_type_t type; - int64_t min; /* -1 means no range */ - int64_t max; /* -1 means no range */ - char *value[ZR_OPTION_MAX_ARRAY_SIZE]; - /* If specified, will check for one of + volume_option_type_t type; + int64_t min; /* -1 means no range */ + int64_t max; /* -1 means no range */ + char *value[ZR_OPTION_MAX_ARRAY_SIZE]; + /* If specified, will check for one of the value from this array */ char *description; /* about the key */ } volume_option_t; + typedef struct vol_opt_list { struct list_head list; volume_option_t *given_opt; } volume_opt_list_t; + struct _xlator { /* Built during parsing */ char *name; @@ -913,7 +915,7 @@ struct _xlator { xlator_list_t *parents; xlator_list_t *children; dict_t *options; - + /* Set after doing dlopen() */ struct xlator_fops *fops; struct xlator_mops *mops; @@ -972,4 +974,3 @@ void loc_wipe (loc_t *loc); #define GF_STATFS_SCAN_FMT_STR "%"SCNx32",%"SCNx32",%"SCNx64",%"SCNx64",%"SCNx64",%"SCNx64",%"SCNx64",%"SCNx64",%"SCNx32",%"SCNx32",%"SCNx32"\n" #endif /* _XLATOR_H */ - |