[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 Mar 31 11:29:44 UTC 2015


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



--- Comment #2 from zhoushicheng <madaozhou at gmail.com> ---
(In reply to Ravishankar N from comment #1)
> Hi zhoushicheng,
> 
> So the test that is failing is:
> EXPECT "1" has_holes $B0/${V0}0/big2bigger
> 
> The has_holes function returns true if(`stat -c '%b*%B-%s' file_name`)) -lt
> 0). I think this means that XFS has not freed the preallocated blocks
> despite the fd being closed by the time we reach this line in the testcase.
> Could you run the test lowering the speculative_prealloc_lifetime ? 
> (See
> http://xfs.org/index.php/XFS_FAQ#Q:
> _How_can_I_speed_up_or_avoid_delayed_removal_of_speculative_preallocation.3F)

This feature is said to be introduced by linux 3.8 (and later), but my linux
version is 2.6.32-358.el6.x86_64. I cannot find speculative_prealloc_lifetime
under /proc/sys/fs/xfs/, it seems that lowering the
speculative_prealloc_lifetime is not an option under this condition.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list