Re: [PATCH] vz: set mount point for container image-based disks

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

 



21.09.2015 11:44, Daniel P. Berrange пишет:
On Sun, Sep 20, 2015 at 10:17:51PM +0300, Maxim Nestratov wrote:
From: Maxim Nestratov <mnestratov@xxxxxxxxxxxxx>

In order to support not only root disks with type=file for containers,
we need to specify mount points for them.
For instance, if a secondary disk is added by the following record in
xml:

     <disk type='file' device='disk'>
       <driver type='ploop' cache='writeback'/>
       <source file='/vz/some_path_to_image_dir'/>
       <target bus='sata' dev='sdb'/>
     </disk>

we are going to add it to container mounted to '/mnt/sdb' path.
That's not what the <disk> element is for.  <disk> is about exposing
block device nodes to the container. It shouldn't try todo anything
with this device nodes. They might be used as raw data storage by
an application, so we can't assume they should be mounted.

If you want to mount things then you should be using <filesystem>
instead.

Regards,
Daniel
Hm. It actually means that any disks with type file shouldn't work in containers. Right?
And working root disks like this is a mistake? But why?
In vz, any images plugged into containers are also treated as disks. The only difference between 'filesystem' and 'disk' is whether we should mount it or not. That's all. While from point of view of a container user it is just another storage. Why not
just mount it automatically?

Best,
Maxim

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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]