Whamcloud - gitweb
EX-8349 lipe: Fix problem with fallocate in test_306
authorVitaliy Kuznetsov <vkuznetsov@ddn.com>
Fri, 20 Oct 2023 21:05:13 +0000 (23:05 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 21 Oct 2023 17:39:52 +0000 (17:39 +0000)
This patch modifies the fallocate command so that the
size type is specified correctly on all versions.
This should will fix the issue with invalid
length value.

Test-Parameters: trivial
Signed-off-by: Vitaliy Kuznetsov <vkuznetsov@ddn.com>
Change-Id: Ie25dc87aed8ea9c882d9b352b11a58071c9c460d
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52779
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-lipe-scan3.sh

index aa4e6dd..e8284df 100644 (file)
@@ -1082,7 +1082,7 @@ create_files() {
 
        # Create many small files of different sizes
        for ((i = 0; i < $num_files; i++)); do
-               fallocate -l $((RANDOM % 125 + 1))Kb $file"_"$i
+               fallocate -l $((RANDOM % 125 + 1))K $file"_"$i
        done
        sync
 }