[Bugs] [Bug 1206461] sparse file self heal fail under xfs version 2 with speculative preallocation feature on

bugzilla at redhat.com bugzilla at redhat.com
Tue May 19 15:34:33 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1206461



--- Comment #16 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/10253 committed in master by Vijay Bellur
(vbellur at redhat.com) 
------
commit 8f788528e64c4c13e16f7ad2d9f667a3813e08cc
Author: zhoushicheng <madaozhou at gmail.com>
Date:   Fri Apr 10 12:10:26 2015 +0800

    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 at gmail.com>
    Reviewed-on: http://review.gluster.org/10253
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Jeff Darcy <jdarcy at redhat.com>
    Reviewed-by: Ravishankar N <ravishankar at redhat.com>
    Reviewed-by: Vijay Bellur <vbellur at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=nOWGpO6yJT&a=cc_unsubscribe


More information about the Bugs mailing list