[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <pjzkjnq7gv574bcnfmuf5n3ehgygqp2b2ybuburc7rty5iwhwf@dc6fkxg3wt5h>
Date: Tue, 2 May 2023 15:19:26 +0200
From: Daniel Wagner <dwagner@...e.de>
To: Hannes Reinecke <hare@...e.de>
Cc: linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-block@...r.kernel.org, Chaitanya Kulkarni <kch@...dia.com>,
Shin'ichiro Kawasaki <shinichiro@...tmail.com>
Subject: Re: [PATCH REPOST blktests v2 3/9] common-xfs: Make size argument
optional for _xfs_run_fio_verify_io
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.
Powered by blists - more mailing lists