From d8d133c6e2ec70c0a8e15b855a3fc05a87c6e89c Mon Sep 17 00:00:00 2001 From: Damiano Cipriani Date: Tue, 27 Feb 2024 12:36:25 +0100 Subject: [PATCH] (fix)lvol: get_xattr lvol name in BdevLvolGet Longhorn 7578 Signed-off-by: Damiano Cipriani --- pkg/spdk/client/basic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/spdk/client/basic.go b/pkg/spdk/client/basic.go index e649d473..038162f1 100644 --- a/pkg/spdk/client/basic.go +++ b/pkg/spdk/client/basic.go @@ -268,11 +268,11 @@ func (c *Client) BdevLvolGet(name string, timeout uint64) (bdevLvolInfoList []sp } b.DriverSpecific.Lvol.Xattrs = make(map[string]string) - user_created, err := c.BdevLvolGetXattr(name, UserCreated) + user_created, err := c.BdevLvolGetXattr(b.Name, UserCreated) if err == nil { b.DriverSpecific.Lvol.Xattrs[UserCreated] = user_created } - snapshot_timestamp, err := c.BdevLvolGetXattr(name, SnapshotTimestamp) + snapshot_timestamp, err := c.BdevLvolGetXattr(b.Name, SnapshotTimestamp) if err == nil { b.DriverSpecific.Lvol.Xattrs[SnapshotTimestamp] = snapshot_timestamp }