Skip to content

Commit b990746

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

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/mount/mount.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,6 @@ 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-
}
180-
181171
props, err := m.getDeviceProperties(devicePath)
182172
if err != nil {
183173
fmt.Printf("Failed to get device properties: %v\n", err)

0 commit comments

Comments
 (0)