Closed smira closed 6 months ago
This prevents probing a device which is being locked because something is working on it.
Similar to https://github.com/siderolabs/go-blockdevice/blob/d9313ea908f3790dba29f7432501335825c863ff/blockdevice/blockdevice_linux.go#L79-L85, but with LOCK_SH.
LOCK_SH
If the lock fails, return an error which can be tested for, so that Talos can retry probing later.
This prevents probing a device which is being locked because something is working on it.
Similar to https://github.com/siderolabs/go-blockdevice/blob/d9313ea908f3790dba29f7432501335825c863ff/blockdevice/blockdevice_linux.go#L79-L85, but with
LOCK_SH
.If the lock fails, return an error which can be tested for, so that Talos can retry probing later.