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>
8589934591 # 0x1ffffffff
48151623420
481516234200
- 9223372036854775807
+ 35184372080640000 # 2000 stripes * (16 TiB - 4096 objects)
)
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"