summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorzhoushicheng <madaozhou@gmail.com>2015-04-10 12:10:26 +0800
committerVijay Bellur <vbellur@redhat.com>2015-05-19 08:34:25 -0700
commit8f788528e64c4c13e16f7ad2d9f667a3813e08cc (patch)
treed9a2030ba391340fdacee35037f3685afc85a962 /tests/volume.rc
parent64d2a5a25b64601958c0f47ec2e6356226f97d4b (diff)
test: Fix sparse file self heal test
This patch solves problems caused by XFS with speculative preallocation feature on : Test EXPECT "1" has_holes $B0/${V0}0/big2bigger would fall when XFS has not freed the preallocated blocks. It is caused by XFS speculative preallocation feature. The test would pass if this feature is disabled. Speculative preallocation can speed up under linux 3.8(and later). Otherwise, the test would pass by dropping cache manually to speed up speculative preallocation. As in http://review.gluster.org/#/c/10411/, using "( cd $M0 ; umount $M0 )" to drop caches, which is better than "echo 3 > /proc/sys/vm/drop_caches". drop caches operation was added in test: tests/basic/afr/sparse-file-self-heal.t BUG: 1206461 Change-Id: Ie2c9d1b92fa8307c44498752fdd100eb86f9689c Signed-off-by: zhoushicheng <madaozhou@gmail.com> Reviewed-on: http://review.gluster.org/10253 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Ravishankar N <ravishankar@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 8c216f76166..5c5e28459c0 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -512,7 +512,6 @@ function cleanup_georep {
$CLI volume geo-rep $GMV0 $H0::$GSV0 delete
}
-
function num_graphs
{
local mountpoint=$1