mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
util: cgroup: remove unused opts in virCgroupV2BindMount
In virCgroupV2BindMount there is an unused variable containing what seem to be tmpfs mount options. Delete it. Unlike with cgroups v1, we do not create a tmpfs here. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
21cd1e7254
commit
ef87d60120
@ -548,9 +548,8 @@ virCgroupV2KillRecursive(virCgroupPtr group,
|
||||
static int
|
||||
virCgroupV2BindMount(virCgroupPtr group,
|
||||
const char *oldroot,
|
||||
const char *mountopts)
|
||||
const char *mountopts G_GNUC_UNUSED)
|
||||
{
|
||||
g_autofree char *opts = NULL;
|
||||
g_autofree char *src = NULL;
|
||||
|
||||
VIR_DEBUG("Mounting cgroups at '%s'", group->unified.mountPoint);
|
||||
@ -561,8 +560,6 @@ virCgroupV2BindMount(virCgroupPtr group,
|
||||
return -1;
|
||||
}
|
||||
|
||||
opts = g_strdup_printf("mode=755,size=65536%s", mountopts);
|
||||
|
||||
src = g_strdup_printf("%s%s", oldroot, group->unified.mountPoint);
|
||||
|
||||
if (mount(src, group->unified.mountPoint, "none", MS_BIND, NULL) < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user