summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/stripe/src/stripe.h
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-10-20 11:14:41 +0530
committerVijay Bellur <vijay@gluster.com>2011-10-20 23:27:00 -0700
commit79b07b3d09b549b2955e94a4281445453501a968 (patch)
tree808e69430b4d4a90273e0e8719c11428e57150df /xlators/cluster/stripe/src/stripe.h
parent652137220714df8b89ae72316c613b4c661eb40f (diff)
Stripe mknod: Always call mknod if REGULAR file on first child.
This prevents a possible race between mknod(REGULUAR files) and remove. mknod first creates on the first_child, and only if successful, on other subvolumes. Change-Id: I73822a9518a2e80685eff6446506d2c56783d47f BUG: 3727 Reviewed-on: http://review.gluster.com/623 Reviewed-by: Amar Tumballi <amar@gluster.com> Tested-by: Gluster Build System <jenkins@build.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 a6dece906ea..3ab67d62135 100644
--- a/xlators/cluster/stripe/src/stripe.h
+++ b/xlators/cluster/stripe/src/stripe.h
@@ -171,6 +171,7 @@ struct stripe_local {
loc_t loc2;
mode_t mode;
+ dev_t rdev;
/* For File I/O fops */
dict_t *dict;