[PATCH REPOST blktests v2 2/9] nvme: Do not hard code device size for dd test
Daniel Wagner
dwagner at suse.de
Tue May 2 05:54:52 PDT 2023
> > - dd if=/dev/urandom of="/dev/${nvmedev}n1" count=128000 bs=4k status=none
> > + size="$(blockdev --getsize64 "/dev/${nvmedev}n1")"
> > + bs="$(blockdev --getbsz "/dev/${nvmedev}n1")"
> > + count=$((size / bs - 1))
>
> Do we need -1?
Not really. My aim was to just to make it test case a bit more
reliable. The original test didn't fill up the disk either.
I am going to drop it.
More information about the Linux-nvme
mailing list