Re: [PATCH REPOST blktests v2 2/9] nvme: Do not hard code device size for dd test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > -	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.



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux