From 1cc6601a777937b7252037a2b9301389dcc6ac2d Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Tue, 20 Mar 2018 16:23:37 -0700 Subject: [PATCH] lvol: remove length xattr This is always just the number of clusters in the underlying blob. The length xattr was set but never retrieved later so it's obviously not needed. Signed-off-by: Jim Harris Change-Id: I8ccb93498ab322247209242b0faf733a90cd4307 Reviewed-on: https://review.gerrithub.io/404614 Tested-by: SPDK Automated Test System Reviewed-by: Tomasz Zawadzki Reviewed-by: Daniel Verkamp --- lib/lvol/lvol.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/lvol/lvol.c b/lib/lvol/lvol.c index 6442b5a2c..84971c864 100644 --- a/lib/lvol/lvol.c +++ b/lib/lvol/lvol.c @@ -1133,8 +1133,6 @@ spdk_lvol_resize(struct spdk_lvol *lvol, uint64_t sz, lvol->num_clusters = new_clusters; - spdk_blob_set_xattr(blob, "length", &sz, sizeof(sz)); - spdk_blob_sync_md(blob, _spdk_lvol_resize_cb, req); return rc;