summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe/src/stripe.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-12-05 22:04:32 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-06 02:30:02 -0800
commit05140d5f3c84cde0f0a568a6deb000bb906174b2 (patch)
tree8033c5ef43b216c353eae1fdd3b98a7c148d00e8 /xlators/cluster/stripe/src/stripe.h
parent759d2ec189ce632022494baa478cc0d5256697e0 (diff)
corrected the stripe's stat structure return logic.
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 340 (Kernel Compilation fail in stripe) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=340
Diffstat (limited to 'xlators/cluster/stripe/src/stripe.h')
-rw-r--r--xlators/cluster/stripe/src/stripe.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/xlators/cluster/stripe/src/stripe.h b/xlators/cluster/stripe/src/stripe.h
index ec4782686..ff57f9932 100644
--- a/xlators/cluster/stripe/src/stripe.h
+++ b/xlators/cluster/stripe/src/stripe.h
@@ -87,19 +87,28 @@ struct stripe_local; /* this itself is used inside the structure; */
struct stripe_local {
struct stripe_local *next;
- call_frame_t *orig_frame;
-
+ call_frame_t *orig_frame;
+
stripe_fd_ctx_t *fctx;
/* Used by _cbk functions */
struct stat stbuf;
struct stat pre_buf;
struct stat post_buf;
- struct stat pre_parent_buf;
- struct stat post_parent_buf;
+ struct stat preparent;
+ struct stat postparent;
+
+ off_t stbuf_size;
+ off_t prebuf_size;
+ off_t postbuf_size;
+ off_t preparent_size;
+ off_t postparent_size;
- struct stat pre_newparent_buf;
- struct stat post_newparent_buf;
+ blkcnt_t stbuf_blocks;
+ blkcnt_t prebuf_blocks;
+ blkcnt_t postbuf_blocks;
+ blkcnt_t preparent_blocks;
+ blkcnt_t postparent_blocks;
struct readv_replies *replies;
struct statvfs statvfs_buf;
@@ -116,7 +125,7 @@ struct stripe_local {
int32_t wind_count; /* used instead of child_cound
in case of read and write */
int32_t op_ret;
- int32_t op_errno;
+ int32_t op_errno;
int32_t count;
int32_t flags;
char *name;