Re: [PATCH v2 2/7] conf: Introduce new XML tag "mode" for disk source

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

 



On Thu, Jul 18, 2013 at 11:02:37AM -0400, John Ferlan wrote:
> From: Osier Yang <jyang@xxxxxxxxxx>
> 
> There are two ways to use a iSCSI LUN as disk source for qemu.
> 
> * The LUN's path as it shows up on host, e.g.
>   /dev/disk/by-path/ip-$ip:3260-iscsi-$iqn-fc18:iscsi.iscsi0-lun-1
> 
> * The libiscsi URI, e.g.
>   iscsi://demo.org:6000/iqn.1992-01.com.example/1
> 
> For a "volume" type disk, if the specified "pool" is of iscsi
> type, we should support to use the LUN in either of above 2 ways.
> That's why to introduce a new XML tag "mode" for the disk source
> (libvirt should support iscsi pool with libiscsi, but it's another
> new feature, which should be done later).
> 
> The "mode" can be either of "host" or "uri". Use "host" to indicate
> use of the LUN with the path as it shows up on host. Use "uri" to
> indicate to use it with the libiscsi URI (future patches may support
> to use network type libvirt storage too, e.g. Ceph, that's why to use
> a more general name "uri").

I'm thinking that the mode is really describing the way in which
QEMU uses the iSCSI LUN. Either it access it via the host, or it
accesses it directly.   The fact that the direct access mode has
a cli arg encoded as an URI is really an implementation detail of
current QEMU cli syntax.

So I'd suggest the "mode" accept either "host" or "direct" instead
of "host" or "uri".


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

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