[PATCH REPOST blktests v2 3/9] common-xfs: Make size argument optional for _xfs_run_fio_verify_io

Daniel Wagner dwagner at suse.de
Tue May 2 06:19:26 PDT 2023


On Fri, Apr 21, 2023 at 08:27:35AM +0200, Hannes Reinecke wrote:
> > +		avail="$(df --output=avail "${mount_dir}" | awk 'NR==2 {print $1}')"
> 
> df --output=avail "${mount_dir}" | tail -1

ok.

> > +		sz="$(printf "%d" $((avail / 1024 - 1 )))m"
> 
> sz=$((avail / 1024 - 1))
> 
> > +	fi
> > +
> >   	_run_fio_verify_io --size="$sz" --directory="${mount_dir}/"
> 
> _run_fio_verify_io --size="${sz}m" --directory="${mount_dir}/"

$sz might already contain the 'm', so can't do this here.



More information about the Linux-nvme mailing list