Skip to content

Commit

Permalink
(fix)lvol: get_xattr lvol name in BdevLvolGet
Browse files Browse the repository at this point in the history
Longhorn 7578

Signed-off-by: Damiano Cipriani <damiano.cipriani@suse.com>
  • Loading branch information
DamiaSan committed Feb 27, 2024
1 parent 0d582eb commit d8d133c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/spdk/client/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d8d133c

Please sign in to comment.