Spdk/lib
Jim Harris 9ee4942130 bdev/gpt: fail more gracefully on extended block size bdevs
The GPT module isn't designed currently to support extended
block sizes like 520 or 4104, and we don't really have a good
way to put GPT down on one of these devices anyways.

So just check the block size when examining a new bdev, and
fail immediately if it's not an even multiple of 512.

Long-term, this should probably be a DEBUG print and not an
ERRLOG, but while we work through the bdev implications
of extended block sizes, keep it as an ERRLOG to facilitate
debugging.

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

Reviewed-on: https://review.gerrithub.io/422321
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Liang Yan <liang.z.yan@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Seth Howell <seth.howell5141@gmail.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2018-08-16 04:38:36 +00:00
..
bdev bdev/gpt: fail more gracefully on extended block size bdevs 2018-08-16 04:38:36 +00:00
blob blobstore: recalculate total clusters after reading super block 2018-07-27 16:23:50 +00:00
blobfs blobfs: add the check for cache_buffer 2018-07-26 23:56:36 +00:00
conf conf: don't strdup name if section already exist 2018-05-17 17:13:19 +00:00
copy copy/ioat: Add scan_ioat_copy_engine RPC 2018-06-14 03:54:42 +00:00
env_dpdk env/dpdk: allow 0 requested memory size 2018-08-15 17:43:30 +00:00
event app: drop -w parameter (wait for rpc init) 2018-08-13 17:30:10 +00:00
ioat ioat: clear the internal channel error register on reset 2018-08-13 16:59:18 +00:00
iscsi iSCSI: set a connection to EXISTING STATE in condition 2018-08-15 18:09:19 +00:00
json json: Add spdk_json_decode_uint16 2018-06-05 21:30:02 +00:00
jsonrpc jsonrpc: call spdk_jsonrpc_free_request only from server thread 2018-08-13 20:01:07 +00:00
log app: allow full-name command line options 2018-08-13 17:30:10 +00:00
lvol lvol: remove destruct_req from lvol store 2018-07-26 21:55:36 +00:00
nbd thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
net net: split sock abstraction into lib/sock 2018-06-22 17:09:57 +00:00
nvme nvme: add spdk_nvme_ns_get_extended_sector_size 2018-08-16 04:38:10 +00:00
nvmf RDMA: fixing create qp failure due to not suppored send sge number, 2018-08-16 03:35:12 +00:00
rocksdb blobfs: change the return type of spdk_file_truncate 2018-07-26 01:42:17 +00:00
rpc rpc: Add option to get_rpc_methods RPC to output only currently usable RPCs 2018-05-04 17:45:48 +00:00
scsi iscsi: Support hot removal of LUN based on LUN open/close 2018-07-17 17:43:28 +00:00
sock sock: fix socket memory free 2018-08-10 15:38:38 +00:00
thread util: Remove usage of abort from library code 2018-07-17 17:40:11 +00:00
trace app,lib: fix checking mmap return value 2018-03-30 16:18:34 -04:00
ut_mock test: Simplify the mock library 2018-08-09 17:18:23 +00:00
util Clean up some incorrect Copyright statements 2018-07-30 16:29:38 +00:00
vhost vhost: return more appropriate errno if controller is still in use 2018-08-16 01:42:39 +00:00
virtio virtio: clarify feature negotiation failure 2018-08-01 19:16:54 +00:00
Makefile test: remove spdk_cunit library 2018-07-06 18:35:03 +00:00