We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ece8e05 commit 33bc37fCopy full SHA for 33bc37f
pkg/deviceutils/device-utils_linux.go
@@ -24,5 +24,5 @@ import (
24
25
func (_ *deviceUtils) DisableDevice(devicePath string) error {
26
deviceName := filepath.Base(devicePath)
27
- return os.WriteFile(fmt.Sprintf("/sys/block/%s/device/state", deviceName), []byte("offline"), 0644)
+ return os.WriteFile(fmt.Sprintf("/sys/block/%s/device/state", deviceName), []byte("offline\n"), 0644)
28
}
0 commit comments