• M
    qemu: Provide non-linux stub for qemuDomainAttachDeviceMknodRecursive · a4d9c31e
    Michal Privoznik 提交于
    The way we create devices under /dev is highly linux specific.
    For instance we do mknod(), mount(), umount(), etc. Some
    platforms are even missing some of these functions. Then again,
    as declared in qemuDomainNamespaceAvailable(): namespaces are
    linux only. Therefore, to avoid obfuscating the code by trying to
    make it compile on weird platforms, just provide a non-linux stub
    for qemuDomainAttachDeviceMknodRecursive(). At the same time,
    qemuDomainAttachDeviceMknodHelper() which actually calls the
    non-existent functions is moved under ifdef __linux__ block since
    its only caller is in that block too.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
    a4d9c31e
qemu_domain.c 286.0 KB