]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: add network-dir as new storage volume type
authorEric Blake <eblake@redhat.com>
Mon, 18 Nov 2013 23:43:06 +0000 (16:43 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 25 Nov 2013 19:29:49 +0000 (12:29 -0700)
commitecd881b7a77873dc7ca752522f7401f88722f471
tree94b849cc1ca45333725be556be1dc8f842a4f437
parentefee1af54ad58e7147442714b2baa560814f94be
storage: add network-dir as new storage volume type

In the 'directory' and 'netfs' storage pools, a user can see
both 'file' and 'dir' storage volume types, to know when they
can descend into a subdirectory.  But in a network-based storage
pool, such as the upcoming 'gluster' pool, we use 'network'
instead of 'file', and did not have any counterpart for a
directory until this patch.  Adding a new volume type
'network-dir' is better than reusing 'dir', because it makes
it clear that the only way to access 'network' volumes within
that container is through the network mounting (leaving 'dir'
for something accessible in the local file system).

* include/libvirt/libvirt.h.in (virStorageVolType): Expand enum.
* docs/formatstorage.html.in: Document it.
* docs/schemasa/storagevol.rng (vol): Allow new value.
* src/conf/storage_conf.c (virStorageVol): Use new value.
* src/qemu/qemu_command.c (qemuBuildVolumeString): Fix client.
* src/qemu/qemu_conf.c (qemuTranslateDiskSourcePool): Likewise.
* tools/virsh-volume.c (vshVolumeTypeToString): Likewise.
* src/storage/storage_backend_fs.c
(virStorageBackendFileSystemVolDelete): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
docs/formatstorage.html.in
docs/schemas/storagevol.rng
include/libvirt/libvirt.h.in
src/conf/storage_conf.c
src/qemu/qemu_command.c
src/qemu/qemu_conf.c
src/storage/storage_backend_fs.c
tools/virsh-volume.c