From 2ba5607ee82335e16828d9f80874c95c7278fd34 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Wed, 13 Dec 2017 09:17:49 -0700 Subject: [PATCH] blob: handle FLAGS descriptor during dirty shutdown recovery Found during unit testing for blobid_mask coming in a future patch - the unit test will be added as part of that future patch. Signed-off-by: Jim Harris Change-Id: Iecdde6ba16c5af9caf59214f328ddc22aae71e94 Reviewed-on: https://review.gerrithub.io/391692 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker --- lib/blob/blobstore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/blob/blobstore.c b/lib/blob/blobstore.c index 9415891fe..9c4b30e2e 100644 --- a/lib/blob/blobstore.c +++ b/lib/blob/blobstore.c @@ -1799,6 +1799,8 @@ _spdk_bs_load_replay_md_parse_page(const struct spdk_blob_md_page *page, struct } } else if (desc->type == SPDK_MD_DESCRIPTOR_TYPE_XATTR) { /* Skip this item */ + } else if (desc->type == SPDK_MD_DESCRIPTOR_TYPE_FLAGS) { + /* Skip this item */ } else { /* Error */ return -1;