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

Support discard for blkio #109

Closed liubin closed 1 year ago

liubin commented 1 year ago

Now we use a fixed format to parse io service data, but it may change.

https://github.com/kata-containers/cgroups-rs/blob/a45ecf08846aebdef1bbcb0507f906406b9a4934/src/blkio.rs#L103-L107

Should implement like runc to support different version kernels.