Skip to content

Commit

Permalink
lxd/instance/device: Correct qemuDeviceIDMaxLength
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Jun 26, 2024
1 parent 691d180 commit 86cad43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const qemuPCIDeviceIDStart = 4
const qemuDeviceIDPrefix = "dev-lxd_"

// qemuDeviceNameMaxLength used to indicate the maximum length of a qemu device ID.
const qemuDeviceIDMaxLength = 64
const qemuDeviceIDMaxLength = 63

// qemuDeviceNamePrefix used as part of the name given QEMU blockdevs, netdevs and device tags generated from user added devices.
const qemuDeviceNamePrefix = "lxd_"
Expand Down

0 comments on commit 86cad43

Please sign in to comment.