Skip to content

Commit 23f3b8b

Browse files
committed
logic to find device for xenserver and update dockerfile to include udevadm in PATH
1 parent d804dfb commit 23f3b8b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pkg/mount/mount.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ func (m *mounter) verifyXenServerDevice(devicePath string, volumeID string) bool
168168
return false
169169
}
170170

171-
inUse, err := m.isDeviceInUse(devicePath)
172-
if err != nil {
173-
fmt.Printf("Failed to check if device is in use: %v\n", err)
174-
return false
175-
}
176-
if inUse {
177-
fmt.Printf("Device is in use: %s\n", devicePath)
178-
return false
179-
}
171+
// inUse, err := m.isDeviceInUse(devicePath)
172+
// if err != nil {
173+
// fmt.Printf("Failed to check if device is in use: %v\n", err)
174+
// return false
175+
// }
176+
// if inUse {
177+
// fmt.Printf("Device is in use: %s\n", devicePath)
178+
// return false
179+
// }
180180

181181
props, err := m.getDeviceProperties(devicePath)
182182
if err != nil {

0 commit comments

Comments
 (0)