330
332
<path>/var/lib/virt/images/sparse.img</path>
333
<format>qcow2</format>
331
334
<permissions>
332
335
<owner>0744</owner>
333
336
<group>0744</group>
334
337
<mode>0744</mode>
335
338
<label>virt_image_t</label>
336
339
</permissions>
338
</volume></pre>
340
</target></pre>
339
341
<dl><dt><code>path</code></dt><dd>Provides the location at which the volume can be accessed on
340
342
the local filesystem, as an absolute path. This is a readonly
341
343
attribute, so shouldn't be specified when creating a volume.
356
358
contains the MAC (eg SELinux) label string.
357
359
<span class="since">Since 0.4.1</span>
362
<a name="StorageVolBacking" id="StorageVolBacking">Backing store elements</a>
365
A single <code>backingStore</code> element is contained within the top level
366
<code>volume</code> element. This tag is used to describe the optional copy
367
on write, backing store for the storage volume. It can contain the following
373
<path>/var/lib/virt/images/master.img</path>
374
<format>raw</format>
376
<owner>0744</owner>
377
<group>0744</group>
378
<mode>0744</mode>
379
<label>virt_image_t</label>
381
</backingStore>
382
</volume></pre>
383
<dl><dt><code>path</code></dt><dd>Provides the location at which the backing store can be accessed on
384
the local filesystem, as an absolute path. If omitted, there is no
385
backing store for this volume.
386
<span class="since">Since 0.6.0</span></dd><dt><code>format</code></dt><dd>Provides information about the pool specific backing store format.
387
For disk pools it will provide the partition type. For filesystem
388
or directory pools it will provide the file format type, eg cow,
389
qcow, vmdk, raw. Consult the pool-specific docs for the list of valid
390
values. Most file formats require a backing store of the same format,
391
however, the qcow2 format allows a different backing store format.
392
<span class="since">Since 0.6.0</span></dd><dt><code>permissions</code></dt><dd>Provides information about the permissions of the backing file.
393
It contains 4 child elements. The
394
<code>mode</code> element contains the octal permission set. The
395
<code>owner</code> element contains the numeric user ID. The <code>group</code>
396
element contains the numeric group ID. The <code>label</code> element
397
contains the MAC (eg SELinux) label string.
398
<span class="since">Since 0.6.0</span>
360
401
<a name="examples" id="examples">Example configuration</a>