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
Mounting cgroupsv2 in linux requires passing NULL as the data parameter of the mount syscall. NixPath coerces None into an empty string instead. Constructing a null CStr is a little tricky and requires unsafe.
You can see the check in kernel/cgroup/cgroup.c. Mount returns EINVAL and the kernel prints cgroup2: unknown option "".
Mounting cgroupsv2 in linux requires passing NULL as the data parameter of the mount syscall. NixPath coerces None into an empty string instead. Constructing a null CStr is a little tricky and requires unsafe.
You can see the check in kernel/cgroup/cgroup.c. Mount returns EINVAL and the kernel prints
cgroup2: unknown option ""
.I was able to workaround by defining this struct
And then providing
Some(&NullString)
as the data argument of mount. I saw #221 about redesigning NixPath so I didn't want to attempt "fixing" this.The text was updated successfully, but these errors were encountered: