Previously, the blobstore load code was iterating over the masks (blob IDs, clusters) byte by byte, then bit by bit in a nested loop, but it was rounding incorrectly and skipping any bits set in the last byte if the total size was not a multiple of 8. Replace the nested loops with a single loop iterating over bits to simplify the code and avoid the bug. Change-Id: Ib365421bf3ba1002d2e5634b34c2bcf9ef7d1267 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/416230 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> |
||
---|---|---|
.. | ||
bdev | ||
blob_bs_dev.c | ||
blobstore.c | ||
blobstore.h | ||
Makefile | ||
request.c | ||
request.h | ||
zeroes.c |