Skip to content

Commit

Permalink
lxd/storage/drivers/btrfs: Clarify fallback in case UUID discovery ti…
Browse files Browse the repository at this point in the history
…mes out

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
  • Loading branch information
roosterfish committed Mar 20, 2024
1 parent e7b653b commit 79c1780
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lxd/storage/drivers/driver_btrfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ func (d *btrfs) Create() error {
}

// Confirm that the symlink is appearing (give it 10s).
// In case of timeout it falls back to using the volume's path
// instead of its UUID.
if tryExists(fmt.Sprintf("/dev/disk/by-uuid/%s", devUUID)) {
// Override the config to use the UUID.
d.config["source"] = devUUID
Expand Down

0 comments on commit 79c1780

Please sign in to comment.