When PRACT is set, if metadata size is 8 bytes, PI is stripped (read) or inserted (write). Hence block size must not include metadata size for extended LBA payload. This patch fixes the issue by reducing metadata size from block size for this case. On the other hand, When PRACT is set, if metadata size is larger than 8 bytes, PI is passed (read) or replaced (write). So block size is not necessary to change for this case. Signed-off-by: James Bergsten <jamesx.bergsten@intel.com> Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I930c8a07519a4742c44240801b068fac2c4802a7 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/465708 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
bdev | ||
blob | ||
ioat | ||
nvme | ||
sock | ||
vmd | ||
Makefile |