Re: [PATCH V2] qemu: pre-create the dbus directory in qemuStateInitialize

2020-07-22 Thread Ján Tomko
On a Wednesday in 2020, Bihong Yu wrote: On 2020/7/22 13:36, Pino Toscano wrote: On Wednesday, 22 July 2020 04:09:24 CEST Bihong Yu wrote: +if (virDirCreate(cfg->dbusStateDir, 0770, cfg->user, cfg->group, + VIR_DIR_CREATE_ALLOW_EXIST) < 0) { +

Re: [PATCH V2] qemu: pre-create the dbus directory in qemuStateInitialize

2020-07-22 Thread Bihong Yu
On 2020/7/22 13:36, Pino Toscano wrote: > On Wednesday, 22 July 2020 04:09:24 CEST Bihong Yu wrote: >> +if (virDirCreate(cfg->dbusStateDir, 0770, cfg->user, cfg->group, >> + VIR_DIR_CREATE_ALLOW_EXIST) < 0) { >> +virReportSystemError(errno, _("Failed to create dbus

Re: [PATCH V2] qemu: pre-create the dbus directory in qemuStateInitialize

2020-07-21 Thread Pino Toscano
On Wednesday, 22 July 2020 04:09:24 CEST Bihong Yu wrote: > +if (virDirCreate(cfg->dbusStateDir, 0770, cfg->user, cfg->group, > + VIR_DIR_CREATE_ALLOW_EXIST) < 0) { > +virReportSystemError(errno, _("Failed to create dbus state dir %s"), > +

[PATCH V2] qemu: pre-create the dbus directory in qemuStateInitialize

2020-07-21 Thread Bihong Yu
>From 165abdd77c7db83ebf98232b80d6b988471185c0 Mon Sep 17 00:00:00 2001 From: Bihong Yu Date: Tue, 14 Jul 2020 15:44:05 +0800 Subject: [PATCH] qemu: pre-create the dbus directory in qemuStateInitialize There are races condiction to make '/run/libvirt/qemu/dbus' directory in virDirCreateNoFork()