diff options
| author | Amar Tumballi <amar@gluster.com> | 2011-03-16 09:43:33 +0000 | 
|---|---|---|
| committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-17 11:59:17 -0700 | 
| commit | 0f39192ef6bc7b1c74cfaeb04ed21305996d67e9 (patch) | |
| tree | cc18ff8e20e15af3b2515b6cb9d1fcb2f1f3f664 /xlators/protocol/client/src/client.h | |
| parent | 0349ec857004428f29b50f3604e5ab126dfb407e (diff) | |
protocol/client: log enhancement
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2346 (Log message enhancements in GlusterFS - phase 1)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'xlators/protocol/client/src/client.h')
| -rw-r--r-- | xlators/protocol/client/src/client.h | 29 | 
1 files changed, 15 insertions, 14 deletions
diff --git a/xlators/protocol/client/src/client.h b/xlators/protocol/client/src/client.h index f3bc0073e0a..221ba542e4f 100644 --- a/xlators/protocol/client/src/client.h +++ b/xlators/protocol/client/src/client.h @@ -31,9 +31,10 @@  #include "glusterfs3.h"  /* FIXME: Needs to be defined in a common file */ -#define CLIENT_CMD_CONNECT "trusted.glusterfs.client-connect" +#define CLIENT_CMD_CONNECT    "trusted.glusterfs.client-connect"  #define CLIENT_CMD_DISCONNECT "trusted.glusterfs.client-disconnect" -#define CLIENT_DUMP_LOCKS "trusted.glusterfs.clientlk-dump" +#define CLIENT_DUMP_LOCKS     "trusted.glusterfs.clientlk-dump" +  struct clnt_options {          char *remote_subvolume;          int   ping_timeout; @@ -81,7 +82,7 @@ typedef struct _client_fd_ctx {  typedef struct _client_posix_lock {          fd_t              *fd;            /* The fd on which the lk operation was made */ -        struct gf_flock       user_flock;    /* the flock supplied by the user */ +        struct gf_flock    user_flock;    /* the flock supplied by the user */          off_t              fl_start;          off_t              fl_end;          short              fl_type; @@ -92,19 +93,19 @@ typedef struct _client_posix_lock {  } client_posix_lock_t;  typedef struct client_local { -        loc_t              loc; -        loc_t              loc2; -        fd_t              *fd; -        clnt_fd_ctx_t     *fdctx; -        uint32_t           flags; -        uint32_t           wbflags; -        struct iobref     *iobref; +        loc_t                loc; +        loc_t                loc2; +        fd_t                *fd; +        clnt_fd_ctx_t       *fdctx; +        uint32_t             flags; +        uint32_t             wbflags; +        struct iobref       *iobref;          client_posix_lock_t *client_lock; -        uint64_t           owner; -        int32_t            cmd; -        struct list_head   lock_list; -        pthread_mutex_t    mutex; +        uint64_t             owner; +        int32_t              cmd; +        struct list_head     lock_list; +        pthread_mutex_t      mutex;  } clnt_local_t;  typedef struct client_args {  | 
