Whamcloud - gitweb
EX-6841 tests: do not truncate over s_maxbytes
authorLi Dongyang <dongyangli@ddn.com>
Wed, 10 May 2023 00:18:20 +0000 (10:18 +1000)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 26 May 2023 10:20:55 +0000 (10:20 +0000)
sanity-lipe-scan3/104 truncates file to MAX_LFS_FILESIZE
but it should not go over s_maxbytes.

Fixes: c05dbbbbca ("EX-4015 lipe: add lipe_scan3")
Test-Parameters: trivial testlist=sanity-lipe-scan3 env=ONLY=104
Change-Id: I4a14befb0dfc34b2611052850b77a0841ff853aa
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50899
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexandre Ioffe <aioffe@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-lipe-scan3.sh

index b3e3e4b..b88ec1d 100644 (file)
@@ -529,7 +529,7 @@ declare -a SIZES=(
        8589934591 # 0x1ffffffff
        48151623420
        481516234200
-       9223372036854775807
+       35184372080640000 # 2000 stripes * (16 TiB - 4096 objects)
 )
 
 test_104() {
@@ -546,7 +546,7 @@ test_104() {
 
        expect_attr "$facet" size 0
 
-       # For a file without striping, the MDT inode has the szie.
+       # For a file without striping, the MDT inode has the size.
        for size in "${SIZES[@]}"; do
                $TRUNCATE $file "$size"
                expect_attr "$facet" size "$size"