Skip to content

Commit

Permalink
Fix dm-verity target naming format in linux guest (microsoft#1338)
Browse files Browse the repository at this point in the history
When adding layer integrity checking feature for SCSI devices,
the dm-verity device format naming was inconsistent with the
already existing pmem based verity target.
Make the naming consistent by changing `verity-scsi-...` to
`dm-verity-scsi-...`.

Signed-off-by: Maksim An <[email protected]>
  • Loading branch information
anmaxvl authored Mar 31, 2022
1 parent 4656282 commit 31952c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guest/storage/scsi/scsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var (
const (
scsiDevicesPath = "/sys/bus/scsi/devices"
vmbusDevicesPath = "/sys/bus/vmbus/devices"
verityDeviceFmt = "verity-scsi-contr%d-lun%d-%s"
verityDeviceFmt = "dm-verity-scsi-contr%d-lun%d-%s"
)

// fetchActualControllerNumber retrieves the actual controller number assigned to a SCSI controller
Expand Down

0 comments on commit 31952c2

Please sign in to comment.