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 f005b58 commit c352513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mountpoint-s3/scripts/fs_latency_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ 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}
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 c352513

Please sign in to comment.