Whamcloud - gitweb
LU-14324 tests: Fix fsx fallocate detection 02/41202/5
authorOleg Drokin <green@whamcloud.com>
Mon, 11 Jan 2021 23:57:40 +0000 (18:57 -0500)
committerOleg Drokin <green@whamcloud.com>
Tue, 12 Jan 2021 15:04:45 +0000 (15:04 +0000)
commite5f8487ec3e0cbd01cfdeca183f244b1a5dedbc5
treed5170f7393faa271ee8ff0873a37f516ebe36fad
parent98015004516cad1173e2bac2a4695bdc56e4d9a4
LU-14324 tests: Fix fsx fallocate detection

Avoid kernel playing fake tricks on us by optimizing away small
increases in file size by fallocate, so to ensure the truth make
large fallocate call instead.
Additionally always truncate to zero after all call, as even a
failed call can result in increased file size.

Test-Parameters: trivial testlist=sanity env=ONLY=150
Test-Parameters: testlist=sanityn env=ONLY=16,COUNT=10000
Test-Parameters: testlist=sanity-dom env=ONLY=fsx,sanityn,SANITYN_ONLY=16
Test-Parameters: fstype=zfs testlist=sanity env=ONLY=150
Test-Parameters: fstype=zfs testlist=sanityn env=ONLY=16,COUNT=10000
Test-Parameters: fstype=zfs testlist=sanity-dom env=ONLY=fsx,sanityn,SANITYN_ONLY=16
Change-Id: I8cddb7d0d30bdf89bf13d18ae36a5f950adc392d
Fixes: 03247bda765c ("LU-14286 osd-ldiskfs: fallocate() should zero new blocks")
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41202
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/fsx.c