mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 12:37:35 +00:00
cgfsng: build_full_cgpath_from_monitorpath()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
11c2386797
commit
c40c820909
@ -2405,13 +2405,12 @@ static const char *cgfsng_get_cgroup(void *hdata, const char *subsystem)
|
|||||||
return h->fullcgpath ? h->fullcgpath + strlen(h->mountpoint) : NULL;
|
return h->fullcgpath ? h->fullcgpath + strlen(h->mountpoint) : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* Given a cgroup path returned from lxc_cmd_get_cgroup_path, build a full path,
|
||||||
* Given a cgroup path returned from lxc_cmd_get_cgroup_path, build a
|
* which must be freed by the caller.
|
||||||
* full path, which must be freed by the caller.
|
|
||||||
*/
|
*/
|
||||||
static char *build_full_cgpath_from_monitorpath(struct hierarchy *h,
|
static inline char *build_full_cgpath_from_monitorpath(struct hierarchy *h,
|
||||||
const char *inpath,
|
const char *inpath,
|
||||||
const char *filename)
|
const char *filename)
|
||||||
{
|
{
|
||||||
return must_make_path(h->mountpoint, inpath, filename, NULL);
|
return must_make_path(h->mountpoint, inpath, filename, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user