numam-spdk/lib/bdev
Jim Harris 7fe2855651 bdev: check desc->write in spdk_bdev_write_zeores_blocks
We should not allow write_zeroes commands if the descriptor
was not opened for writing.

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

Reviewed-on: https://review.gerrithub.io/414896
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2018-06-14 14:57:11 +00:00
..
aio thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
error bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
gpt thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
iscsi iscsi initiator: remove the deleted variable. 2018-06-14 02:54:27 +00:00
lvol bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
malloc thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
null thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
nvme bdev/nvme: remove redundant check for active NS 2018-06-12 19:37:04 +00:00
passthru thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
pmem bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
rbd thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
rpc bdev/rpc: make get_bdevs_iostat name param optional 2018-05-25 23:26:59 +00:00
split thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
virtio thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
bdev.c bdev: check desc->write in spdk_bdev_write_zeores_blocks 2018-06-14 14:57:11 +00:00
Makefile bdev/pmem: change all NVML strings to PMDK 2018-04-07 00:07:57 -04:00
part.c bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
scsi_nvme.c bdev: Rename spdk_internal/bdev.h to spdk/bdev_module.h 2018-05-25 16:02:22 +00:00
vtune.c bdev: disable new GCC 7 warning in VTune code 2018-03-19 15:58:15 -04:00