The usable capacity of the filesystem is less than the raw
partition/device size due to the additional meta/log data.
Ensure that the job size for fio is not exceeding the limits.
Because we have hard coded the path where we mount the filesystem
and don't want to expose this, we just update max size inside
_xfs_run_fio_verify_io(). No need to leak this into the caller.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
sz_mb="${avail_mb}"
else
sz_mb="$(convert_to_mb "${sz}")"
+ if [[ "${sz_mb}" -gt "${avail_mb}" ]]; then
+ sz_mb="${avail_mb}"
+ fi
fi
_run_fio_verify_io --size="${sz_mb}m" --directory="${mount_dir}/"