Skip to content

Commit

Permalink
Ephemeral disks should be able to use 'xvdZ' device naming
Browse files Browse the repository at this point in the history
  • Loading branch information
samjarrett authored May 10, 2024
1 parent be9158d commit 7dd7d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/nvme.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (ns *AwsNitroNVMeService) getBlockDeviceMapping(nir *NVMeIoctlResult) (stri
// Vendor Specfic (vs)
vs := strings.TrimRightFunc(string(nir.IdCtrl.Vs.Bdev[:]), ns.trimBlockDevice)
// Regex Block device Mapping
rebdm := regexp.MustCompile(`^(ephemeral[0-9]):(sd[a-z]|none)`)
rebdm := regexp.MustCompile(`^(ephemeral[0-9]):(sd[a-z]|xvd[a-z]|none)`)
// Match Block Device Mapping
mbdm := rebdm.FindStringSubmatch(vs)
if len(mbdm) != 3 {
Expand Down

0 comments on commit 7dd7d36

Please sign in to comment.