kata-containers / cgroups-rs

Native Rust library for managing control groups under Linux
https://crates.io/crates/cgroups-rs
Other
116 stars 47 forks source link

Include file path for I/O errors #93

Closed liubin closed 1 year ago

liubin commented 1 year ago

If read/write cgroup file failed, it's better to include the file path for debugging purposes.

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: unable to write to a control group file caused by: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }: unknown