]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Currently, you can define a logical storage pool with something like:
authorChris Lalancette <clalance@redhat.com>
Tue, 21 Oct 2008 17:23:38 +0000 (17:23 +0000)
committerChris Lalancette <clalance@redhat.com>
Tue, 21 Oct 2008 17:23:38 +0000 (17:23 +0000)
commitc6f0a7b2dbc534aee9a0dfd004254246892a6d8b
tree7817aea61fa9e2dbb8f2d005b219d9733c7eaf7a
parent46db2b296860629998b795a8c6bf2fa1a6e27b7a
Currently, you can define a logical storage pool with something like:
<pool type='logical'>
<source>
<name>MyVG</name>
<device name='/dev/sdb'/>
...

However, dumping out the XML for this same storage pool (with, say, virsh
pool-dumpxml), gives:

<pool type='logical'>
<source>
<name>MyVG</name>
<device name='/dev/sdb'>
</device>

To make this more idempotent, do the <device name='/dev/sdb'/> form by default,
and only do the <device>...</device> form if .nfreeExtent is defined for the
storage pool.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
ChangeLog
src/storage_conf.c