numam-dpdk/examples/vhost_blk
Jin Yu 71dd2870bf examples/vhost_blk: fix check of device path
Fix the time of check time of use warning in example code.
Ignore the errno of unlink failure. There are two situations.
The first one is that file doesn't exist the unlink fails and
it's ok to ignore. The second one is that unlink fails to remove
file but the next bind() would fail too.

Coverity issue: 350589, 158663
Fixes: c19beb3f38 ("examples/vhost_blk: introduce vhost storage sample")
Cc: stable@dpdk.org

Signed-off-by: Jin Yu <jin.yu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2020-02-14 12:42:13 +01:00
..
blk_spec.h examples/vhost_blk: introduce vhost storage sample 2019-11-11 14:23:02 +01:00
blk.c examples/vhost_blk: introduce vhost storage sample 2019-11-11 14:23:02 +01:00
Makefile examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
meson.build examples/vhost_blk: introduce vhost storage sample 2019-11-11 14:23:02 +01:00
vhost_blk_compat.c examples/vhost_blk: introduce vhost storage sample 2019-11-11 14:23:02 +01:00
vhost_blk.c examples/vhost_blk: fix check of device path 2020-02-14 12:42:13 +01:00
vhost_blk.h examples/vhost_blk: introduce vhost storage sample 2019-11-11 14:23:02 +01:00