blobstore: allow internaly get xattr value even in loading state

For some xattrs we need to know its value even if blob is in loading
state, e.g. BLOB_SNAPSHOT xattr value when blob is loading.

Change-Id: I1cd7805cf33be64cf59792f85a270e9b536e23bd
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Reviewed-on: https://review.gerrithub.io/403062
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Tomasz Kulasek 2018-03-07 18:08:28 +01:00 committed by Jim Harris
parent be864c755e
commit ca571b1563

View File

@ -4085,8 +4085,6 @@ _spdk_blob_get_xattr_value(struct spdk_blob *blob, const char *name,
struct spdk_xattr *xattr;
struct spdk_xattr_tailq *xattrs;
_spdk_blob_verify_md_op(blob);
xattrs = internal ? &blob->xattrs_internal : &blob->xattrs;
TAILQ_FOREACH(xattr, xattrs, link) {
@ -4103,6 +4101,8 @@ int
spdk_blob_get_xattr_value(struct spdk_blob *blob, const char *name,
const void **value, size_t *value_len)
{
_spdk_blob_verify_md_op(blob);
return _spdk_blob_get_xattr_value(blob, name, value, value_len, false);
}