68063cd8b6
Fixes #1933 When decoupling parent the updated parent_id was not persisted to the blob if it was a snapshot. Due to having md_ro set to true, blob_set_xattr() failed. Later on the incorrect parent_id could cause troubles like in the github issue, when deleting that snapshot. This patch adds return code check for blob_set_xattr and forces md_ro to false during blob md sync. Since some of code paths are shared between decouple, inflate and clone operations, the final callback for them is doing revert of the original md_ro. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: If017455f72e4d809fe533d9f986e5ae6bb8e2035 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8420 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
blob_bs_dev.c | ||
blobstore.c | ||
blobstore.h | ||
Makefile | ||
request.c | ||
request.h | ||
spdk_blob.map | ||
zeroes.c |