mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #100500 from jsafrane/aws-nvme-partitions
Fix mounting partitions on NVMe devices
This commit is contained in:
commit
77e73ffbee
@ -42,6 +42,7 @@ import (
|
||||
|
||||
const (
|
||||
diskPartitionSuffix = ""
|
||||
nvmeDiskPartitionSuffix = "p"
|
||||
checkSleepDuration = time.Second
|
||||
)
|
||||
|
||||
@ -240,6 +241,9 @@ func getDiskByIDPaths(volumeID aws.KubernetesVolumeID, partition string, deviceP
|
||||
if err != nil {
|
||||
klog.Warningf("error looking for nvme volume %q: %v", volumeID, err)
|
||||
} else if nvmePath != "" {
|
||||
if partition != "" {
|
||||
nvmePath = nvmePath + nvmeDiskPartitionSuffix + partition
|
||||
}
|
||||
devicePaths = append(devicePaths, nvmePath)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user