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

Re: [Libguestfs] [PATCH] v2v: Set DISKTYPE=2 in RHV and VDSM meta files

On Mon, Sep 2, 2019 at 7:47 PM Richard W.M. Jones <rjones redhat com> wrote:
I was trying to find some documentation for this
field and the best I could find is:


What do the numbers mean?  The comments in the file indicate
that strings are valid too (eg. DISKTYPE=OVFS).

This may make it more clear:

You can see that "1" is considered as "DATA" disk. However this is wrong, based
on incorrect documentation in vdsm, which may explain why the value "1" sneaked
into v2v.

The concept of disk type was never used by engine and it always sent the value "2" until
4.2, when we actually started to use disk types and converted the values to strings.

When writing to export domain, you should use the value "2".

Also this patch as written will affect -o vdsm mode too (another
deprecated-ish mode where we write directly to the Storage Domain).
I don't know if that's right or not.

Writing to data domain is even more evil, since the format depends on the storage domain
version, but "2" will work for any ovirt version.


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