You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fs2: ignore no device error when reading freezer state
We can safely ignore the error in the following two common situations:
1. The cgroup path does not exist at the time of opening(eg: the kernel is too old)
— indicated by os.IsNotExist.
2. The cgroup path is deleted during the seek/read operation — indicated by
errors.Is(err, unix.ENODEV).
These conditions are expected and do not require special handling.
Unfortunately, the second case was accidentally removed during a code refactoring.
We should add it back to ensure correct error handling.
Signed-off-by: lifubang <[email protected]>
0 commit comments