numam-dpdk/examples
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
..
bbdev_app examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
bond examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
bpf examples/bpf: remove from list of examples to build 2019-10-27 17:23:05 +01:00
cmdline examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
distributor examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
ethtool examples/ethtool: fix unchecked return value 2020-02-13 14:43:56 +01:00
eventdev_pipeline examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
fips_validation examples/fips_validation: fix AES-GCM cipher length parsing 2020-02-14 16:12:29 +01:00
flow_classify examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
flow_filtering examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
helloworld examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
ioat examples/ioat: fix invalid link status check 2020-02-13 14:43:56 +01:00
ip_fragmentation examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
ip_pipeline examples: use common macro RTE_DIM 2020-02-05 14:37:41 +01:00
ip_reassembly examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
ipsec-secgw examples/ipsec-secgw: add missing SPDX license tag 2020-02-13 12:41:04 +01:00
ipv4_multicast examples: use common macro RTE_DIM 2020-02-05 14:37:41 +01:00
kni examples/kni: add SIGTERM signal handling 2020-02-13 18:27:44 +01:00
l2fwd examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd-cat examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd-crypto examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd-event examples/l2fwd-event: fix ethdev RSS setup 2020-01-14 21:37:51 +01:00
l2fwd-jobstats examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd-keepalive examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l3fwd examples: use common macro RTE_DIM 2020-02-05 14:37:41 +01:00
l3fwd-acl examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l3fwd-power examples/l3fwd-power: fix interrupt disable 2020-02-14 12:49:21 +01:00
link_status_interrupt examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
multi_process examples/multi_process: fix client crash with sparse ports 2019-11-25 23:52:00 +01:00
ntb examples/ntb: fix mempool ops setting 2020-01-20 10:39:06 +01:00
packet_ordering examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
performance-thread examples/performance-thread: add pthread shim to meson 2019-10-27 17:24:25 +01:00
ptpclient examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
qos_meter examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
qos_sched examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
rxtx_callbacks examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
server_node_efd examples/server_node_efd: add server binary to meson build 2019-10-27 17:25:22 +01:00
service_cores examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
skeleton examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
tep_termination examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
timer examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vdpa examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vhost examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vhost_blk examples/vhost_blk: fix check of device path 2020-02-14 12:42:13 +01:00
vhost_crypto examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vm_power_manager examples/power: fix ack for enable/disable turbo 2020-02-13 18:22:19 +01:00
vmdq examples: use common macro RTE_DIM 2020-02-05 14:37:41 +01:00
vmdq_dcb examples: use common macro RTE_DIM 2020-02-05 14:37:41 +01:00
Makefile examples/vhost_blk: introduce vhost storage sample 2019-11-11 14:23:02 +01:00
meson.build examples/vhost_blk: introduce vhost storage sample 2019-11-11 14:23:02 +01:00