Skip to content

Commit

Permalink
Checking the number of files before starting fio job for creating files
Browse files Browse the repository at this point in the history
Signed-off-by: Ankit Saurabh <[email protected]>
  • Loading branch information
Ankit Saurabh committed Feb 22, 2024
1 parent c352513 commit 6cf6753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mountpoint-s3/scripts/fs_latency_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ do

# create the target directory if it does not exist before running the benchmark
mkdir -p ${target_dir}
file_count = $(ls $target_dir | wc -l)
if [$file_count -ne $dir_size]; then
file_count=$(ls $target_dir | wc -l)
if [ $file_count -ne $dir_size ]; then
fio --thread --directory=${target_dir} ${job_file}
fi

Expand Down

0 comments on commit 6cf6753

Please sign in to comment.