diff options
author | shishir gowda <shishirng@gluster.com> | 2011-10-21 12:17:04 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-10-21 00:19:59 -0700 |
commit | b3d696f78b16f246bd34f87aafb52317033408cc (patch) | |
tree | de7c6e86ac2faed92552a760fd5894a7f93102b6 /xlators/cluster/stripe/src/stripe.h | |
parent | bdf20a205a4d67d5f6d3ac6010a34291c2822a80 (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: I0ddaeb92c1884c771c966bb151db052ab5735367
BUG: 3727
Reviewed-on: http://review.gluster.com/608
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.h | 1 |
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; |