mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-03 04:16:42 +00:00
25 lines
513 B
Go
25 lines
513 B
Go
package fs
|
|
|
|
import (
|
|
"github.com/opencontainers/cgroups"
|
|
"github.com/opencontainers/cgroups/fscommon"
|
|
)
|
|
|
|
type RdmaGroup struct{}
|
|
|
|
func (s *RdmaGroup) Name() string {
|
|
return "rdma"
|
|
}
|
|
|
|
func (s *RdmaGroup) Apply(path string, _ *cgroups.Resources, pid int) error {
|
|
return apply(path, pid)
|
|
}
|
|
|
|
func (s *RdmaGroup) Set(path string, r *cgroups.Resources) error {
|
|
return fscommon.RdmaSet(path, r)
|
|
}
|
|
|
|
func (s *RdmaGroup) GetStats(path string, stats *cgroups.Stats) error {
|
|
return fscommon.RdmaGetStats(path, stats)
|
|
}
|