Spdk/scripts
Jim Harris fa952fcd5a test/nbd: use dd to confirm I/O path is ready
We see a delay, especially in VMs, between when the
block layer reports the nbd device as ready (with
non-zero size) and when I/O will complete successfully
without an -ENOSPC error.

So to compensate, dd the first block of the nbd
device to a temporary file, then check the size of that
file to confirm the nbd device is ready for I/O.
Note that dd with a zero-sized input file will always
complete successfully just with 0 blocks transferred.
So we cannot rely on the return value of dd - we check
the size of the written file instead.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I84ea3b663668a27021619cbee502769af4922937

Reviewed-on: https://review.gerrithub.io/385936
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-11-10 17:00:58 -05:00
..
ceph test/ceph: move ceph_raw.img to /var/tmp 2017-08-11 12:35:18 -04:00
perf/nvme scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
vagrant vagrant: fix Vagrant provisioning 2017-09-11 18:25:17 -04:00
autotest_common.sh test/nbd: use dd to confirm I/O path is ready 2017-11-10 17:00:58 -05:00
build_kmod.sh spdk: add the ioat_kperf test tool to autobuild system 2016-01-22 07:58:13 -07:00
check_format.sh rte_virtio: use spdk/stdinc.h 2017-10-24 17:19:44 -04:00
detect_cc.sh detect_cc.sh: further fix CC_TYPE generation 2017-05-11 16:45:24 -07:00
eofnl scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
fio.py iscsi: Add an iscsi target application 2016-08-04 13:15:33 -07:00
gen_nvme.sh bdev/nvme: Names are now explicitly assigned by the user 2017-03-15 17:42:45 -07:00
genconfig.py genconfig.py: use print() for Python 3 compat 2017-06-02 19:46:47 -04:00
pkgdep.sh bdev_pmem: initial implementation of persistent memory bdev 2017-09-29 14:04:32 -04:00
posix.txt build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
prep_benchmarks.sh fio: Add a script to prep a system for benchmarks 2017-05-31 04:00:41 -04:00
rpc.py RPC: Add rpc support to update firmware. 2017-10-31 12:49:31 -04:00
setup.sh scripts/setup: abort on hugepage allocation failure 2017-11-09 11:32:54 -05:00