numam-spdk/lib/blob
Jim Harris eb8ee073c5 blobstore: recalculate total clusters after reading super block
Blobstore uses 1MB cluster size by default, but logical volumes
override it to 4MB by default.  When an existing lvolstore is loaded,
all cluster calculations were being done based on the 1MB size - not
the 4MB cluster size read from the superblock.  That would result
in asserts (due to mismatched used cluster mask size) and all kinds of
other possible weirdness with subsequent operations.

Fixes: 2c91e91907 ("blobstore: Save the original size of the disk.")

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

Reviewed-on: https://review.gerrithub.io/420582
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Seth Howell <seth.howell5141@gmail.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2018-07-27 16:23:50 +00:00
..
bdev thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
blob_bs_dev.c blobstore: Add a blob_bs_dev that provides back_bs_dev for clones 2018-03-08 11:34:15 -05:00
blobstore.c blobstore: recalculate total clusters after reading super block 2018-07-27 16:23:50 +00:00
blobstore.h blobstore: adjust order in spdk_xattr 2018-07-19 01:45:19 +00:00
Makefile blobstore: Add a blob_bs_dev that provides back_bs_dev for clones 2018-03-08 11:34:15 -05:00
request.c thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
request.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00
zeroes.c blob: Add a bs_dev that always returns 0 2018-01-30 15:46:18 -05:00