summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe/src/stripe.h
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-10-03 17:21:19 +0530
committerVijay Bellur <vijay@gluster.com>2011-10-05 22:22:34 -0700
commit1b2164ec8cfea7ab99fc4a0cb86fa3d41e4fb7e5 (patch)
tree1f7ff425d30727c05a032cd4306a85ab5cf234e4 /xlators/cluster/stripe/src/stripe.h
parente397772955f10f22fcb920f34a32efd859fb727d (diff)
Stripe: Prevent dir gfid mismatch and ENOTEMPTY errors
gfid mismatch issue- rmdir- first remove from non first child (FC), and then last from FC. If one fails, FC entry is not removed and op is failed. mkdir- first create dir from FC, followed by other childs. If FC is success then, we succeed, banking on entry self heal ENOTEMPTY issue- unlink: remove from non FC and then on success remove from FC. If non FC remove fails, fail unlink create- Create first on FC, and on success create on non FC. Change-Id: Ia8b9e92cd2aba891d249d1995e383fea0581ffca BUG: 3663 Reviewed-on: http://review.gluster.com/557 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com>
Diffstat (limited to 'xlators/cluster/stripe/src/stripe.h')
-rw-r--r--xlators/cluster/stripe/src/stripe.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/stripe/src/stripe.h b/xlators/cluster/stripe/src/stripe.h
index 8d43a960..a6dece90 100644
--- a/xlators/cluster/stripe/src/stripe.h
+++ b/xlators/cluster/stripe/src/stripe.h
@@ -170,6 +170,7 @@ struct stripe_local {
loc_t loc;
loc_t loc2;
+ mode_t mode;
/* For File I/O fops */
dict_t *dict;