mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 21:20:48 +00:00
cgfsng: cg_legacy_set_data()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
91d1a13a13
commit
90e9728449
@ -2682,15 +2682,14 @@ out:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* Called from setup_limits - here we have the container's cgroup_data because
|
||||||
* Called from setup_limits - here we have the container's cgroup_data because
|
* we created the cgroups.
|
||||||
* we created the cgroups
|
|
||||||
*/
|
*/
|
||||||
static int cg_legacy_set_data(const char *filename, const char *value,
|
static int cg_legacy_set_data(const char *filename, const char *value,
|
||||||
struct cgfsng_handler_data *d)
|
struct cgfsng_handler_data *d)
|
||||||
{
|
{
|
||||||
char *fullpath, *p;
|
|
||||||
size_t len;
|
size_t len;
|
||||||
|
char *fullpath, *p;
|
||||||
/* "b|c <2^64-1>:<2^64-1> r|w|m" = 47 chars max */
|
/* "b|c <2^64-1>:<2^64-1> r|w|m" = 47 chars max */
|
||||||
char converted_value[50];
|
char converted_value[50];
|
||||||
struct hierarchy *h;
|
struct hierarchy *h;
|
||||||
|
Loading…
Reference in New Issue
Block a user