diff options
author | Xavier Hernandez <xhernandez@datalab.es> | 2016-02-15 10:59:29 +0100 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2016-02-29 23:56:41 -0800 |
commit | 9afe93bee897c8ead507a8dadb0e0fc32ed8abf0 (patch) | |
tree | bd12300fd03cc99ebc616d9398148e91d3bc75c0 /tests | |
parent | b1cb581424305592fac5394a578b307117b22fe7 (diff) |
cluster/ec: Fix invalid config check for directories
The trusted.ec.config xattr is not defined for directories. However
sometimes it could be requested because the inode type of a directory
can temporarily be IA_INVAL.
Requesting such xattr using the xattrop fop when it doesn't exist,
returns a config value full of 0's, which is invalid and caused some
fops to fail.
This patch filters out this case by ignoring config xattr == 0.
Change-Id: Ied51c35b313ea8c3eeae27812f9bae61d3808e92
BUG: 1293223
Signed-off-by: Xavier Hernandez <xhernandez@datalab.es>
Reviewed-on: http://review.gluster.org/13446
Smoke: Gluster Build System <jenkins@build.gluster.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Ashish Pandey <aspandey@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/basic/ec/quota.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic/ec/quota.t b/tests/basic/ec/quota.t index f093085bde0..b023240b87e 100755 --- a/tests/basic/ec/quota.t +++ b/tests/basic/ec/quota.t @@ -15,7 +15,7 @@ EXPECT 'Created' volinfo_field $V0 'Status' TEST $CLI volume start $V0 EXPECT_WITHIN $PROCESS_UP_TIMEOUT 'Started' volinfo_field $V0 'Status' TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 $M0 -EXPECT_WITHIN $CHILD_UP_TIMEOUT "$DISPERSE" ec_child_up_count $V0 0 +EXPECT_WITHIN $CHILD_UP_TIMEOUT "3" ec_child_up_count $V0 0 TEST mkdir -p $M0/test |