This structure is going to be used from not only device attach
code, but also when building the namespace. Moreover, the code
lives in a separate file so the chances of clashing with another
name are minimal.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
}
-struct qemuDomainAttachDeviceMknodData {
+struct qemuNamespaceMkondData {
virQEMUDriverPtr driver;
virDomainObjPtr vm;
const char *file;
qemuDomainAttachDeviceMknodHelper(pid_t pid G_GNUC_UNUSED,
void *opaque)
{
- struct qemuDomainAttachDeviceMknodData *data = opaque;
+ struct qemuNamespaceMkondData *data = opaque;
int ret = -1;
bool delDevice = false;
bool isLink = S_ISLNK(data->sb.st_mode);
unsigned int ttl)
{
g_autoptr(virQEMUDriverConfig) cfg = NULL;
- struct qemuDomainAttachDeviceMknodData data;
+ struct qemuNamespaceMkondData data;
int ret = -1;
g_autofree char *target = NULL;
bool isLink;