forked from libvirt/libvirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: expose volume meta-type in XML
I got annoyed at having to use both 'virsh vol-list $pool --details' AND 'virsh vol-dumpxml $vol $pool' to learn if I had populated the volume correctly. Since two-thirds of the data present in virStorageVolGetInfo() already appears in virStorageVolGetXMLDesc(), this just adds the remaining piece of information, as: <volume type='...'> ... </volume> * docs/formatstorage.html.in: Document new <volume type=...>. * docs/schemas/storagevol.rng (vol): Add it to RelaxNG. * src/conf/storage_conf.h (virStorageVolTypeToString): Declare. * src/conf/storage_conf.c (virStorageVolTargetDefFormat): Output the metatype. (virStorageVolDefParseXML): Parse it, for unit tests. * tests/storagevolxml2xmlout/vol-*.xml: Update tests to match. Signed-off-by: Eric Blake <[email protected]>
- v3.3.0
- v3.3.0-rc2
- v3.3.0-rc1
- v3.2.1
- v3.2.0
- v3.2.0-rc2
- v3.2.0-rc1
- v3.1.0
- v3.1.0-rc2
- v3.1.0-rc1
- v3.0.0
- v3.0.0-rc2
- v3.0.0-rc1
- v2.5.0
- v2.5.0-rc2
- v2.5.0-rc1
- v2.4.0
- v2.4.0-rc2
- v2.4.0-rc1
- v2.3.0
- v2.3.0-rc2
- v2.3.0-rc1
- v2.2.1
- v2.2.0
- v2.2.0-rc2
- v2.2.0-rc1
- v2.1.0
- v2.1.0-rc1
- v2.0.0
- v2.0.0-rc2
- v2.0.0-rc1
- v1.3.5
- v1.3.5-rc1
- v1.3.4
- v1.3.4-rc2
- v1.3.4-rc1
- v1.3.3.3
- v1.3.3.2
- v1.3.3.1
- v1.3.3
- v1.3.3-rc2
- v1.3.3-rc1
- v1.3.2
- v1.3.2-rc2
- v1.3.2-rc1
- v1.3.1
- v1.3.1-rc2
- v1.3.1-rc1
- v1.3.0
- v1.3.0-rc2
- v1.3.0-rc1
- v1.2.21
- v1.2.21-rc2
- v1.2.21-rc1
- v1.2.20
- v1.2.20-rc2
- v1.2.20-rc1
- v1.2.19
- v1.2.19-rc2
- v1.2.19-rc1
- v1.2.18.4
- v1.2.18.3
- v1.2.18.2
- v1.2.18.1
- v1.2.18
- v1.2.18-rc2
- v1.2.18-rc1
- v1.2.17
- v1.2.17-rc2
- v1.2.17-rc1
- v1.2.16
- v1.2.16-rc2
- v1.2.16-rc1
- v1.2.15
- v1.2.15-rc2
- v1.2.15-rc1
- v1.2.14
- v1.2.14-rc2
- v1.2.14-rc1
- v1.2.13.2
- v1.2.13.1
- v1.2.13
- v1.2.13-rc2
- v1.2.13-rc1
- v1.2.12
- v1.2.12-rc2
- v1.2.12-rc1
- v1.2.11
- v1.2.11-rc2
- v1.2.11-rc1
- v1.2.10
- v1.2.10-rc2
- v1.2.10-rc1
- v1.2.9.3
- v1.2.9.2
- v1.2.9.1
- v1.2.9
- v1.2.9-rc2
- v1.2.9-rc1
- v1.2.8
- v1.2.8-rc2
- v1.2.8-rc1
- v1.2.7
- v1.2.7-rc2
- v1.2.7-rc1
- v1.2.6
- v1.2.6-rc2
- v1.2.6-rc1
- v1.2.5
- v1.2.5-rc2
- v1.2.5-rc1
- v1.2.4
- v1.2.4-rc2
- v1.2.4-rc1
- v1.2.3
- v1.2.3-rc2
- v1.2.3-rc1
- v1.2.2
- v1.2.2-rc2
- v1.2.2-rc1
- v1.2.1
- v1.2.1-rc2
- v1.2.1-rc1
- v1.2.0
- v1.2.0-rc2
- v1.2.0-rc1
- CVE-2015-5313
- CVE-2015-5247-3
- CVE-2015-5247-2
- CVE-2015-5247-1
- CVE-2015-0236-2
- CVE-2015-0236-1
- CVE-2014-8136
- CVE-2014-8135
- CVE-2014-8131-2
- CVE-2014-8131-1
- CVE-2014-7823
- CVE-2014-3657
- CVE-2014-3633
- CVE-2014-1447-2
- CVE-2014-1447-1
- CVE-2014-0179
- CVE-2014-0028
- CVE-2013-6458-4
- CVE-2013-6458-3
- CVE-2013-6458-2
- CVE-2013-6458-1
- CVE-2013-6457
- CVE-2013-6436
Showing
20 changed files
with
52 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='block'> | ||
<name>Swap</name> | ||
<key>r4xkCv-MQhr-WKIT-R66x-Epn2-e8hG-1Z5gY0</key> | ||
<source> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='block'> | ||
<name>Swap</name> | ||
<key>r4xkCv-MQhr-WKIT-R66x-Epn2-e8hG-1Z5gY0</key> | ||
<source> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='block'> | ||
<name>sda1</name> | ||
<key>/dev/sda1</key> | ||
<source> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='network'> | ||
<name>test2</name> | ||
<source> | ||
</source> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='file'> | ||
<name>sparse.img</name> | ||
<key>/var/lib/libvirt/images/sparse.img</key> | ||
<source> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='file'> | ||
<name><sparse>.img</name> | ||
<source> | ||
</source> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='file'> | ||
<name>sparse.img</name> | ||
<source> | ||
</source> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='block'> | ||
<name>Swap</name> | ||
<key>r4xkCv-MQhr-WKIT-R66x-Epn2-e8hG-1Z5gY0</key> | ||
<source> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='block'> | ||
<name>Swap</name> | ||
<key>r4xkCv-MQhr-WKIT-R66x-Epn2-e8hG-1Z5gY0</key> | ||
<source> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='block'> | ||
<name>sda1</name> | ||
<key>/dev/sda1</key> | ||
<source> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<volume> | ||
<volume type='network'> | ||
<name>test2</name> | ||
<source> | ||
</source> | ||
|