Re: [PATCH v2 02/11] qemu: Drop two layers of nesting of memoryBackingDir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 26, 2020 at 04:15:06PM +0100, Michal Privoznik wrote:
> Initially introduced in v3.10.0-rc1~172.
> 
> When generating a path for memory-backend-file or -mem-path, qemu
> driver will use the following pattern:
> 
>   $memoryBackingDir/libvirt/qemu/$id-$shortName
> 
> where $memoryBackingDir defaults to /var/lib/libvirt/qemu/ram but
> can be overridden in qemu.conf. Anyway, the "/libvirt/qemu/" part
> looks redundant, because it's already contained in the default,
> or creates unnecessary nesting if overridden in qemu.conf.

I think this was copied from our earlier huge pages code
which used /dev/hugepages, and then added "/libvirt/qemu"
to it.

Now we're stripping off "/libvirt/qemu" though, we're liable
to a filename clashes if someone edits qemu.conf to point to
/dev/shm.

IOW, even though "/libvirt/qemu" is redundant when using our
default path, I think we need to keep it to avoid clashing
with custom paths.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux