From b3d696f78b16f246bd34f87aafb52317033408cc Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Fri, 21 Oct 2011 12:17:04 +0530 Subject: 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 Reviewed-by: Amar Tumballi --- xlators/cluster/stripe/src/stripe.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/cluster/stripe/src/stripe.h') diff --git a/xlators/cluster/stripe/src/stripe.h b/xlators/cluster/stripe/src/stripe.h index a6dece906..3ab67d621 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; -- cgit