1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

Add new net filesystem glusterfs

* src/storage_conf.c src/storage_conf.h: adds glusterfs to the list
  of network storage
* libvirt.spec.in: adds the dependency on glusterfs-client
This commit is contained in:
Harshavardhana 2009-07-08 11:46:25 +02:00 committed by Daniel Veillard
parent b0e48bfdfe
commit 2562303a45
3 changed files with 4 additions and 2 deletions

View File

@ -94,6 +94,8 @@ BuildRequires: util-linux
# For showmount in FS driver (netfs discovery) # For showmount in FS driver (netfs discovery)
BuildRequires: nfs-utils BuildRequires: nfs-utils
Requires: nfs-utils Requires: nfs-utils
# For glusterfs
Requires: glusterfs-client >= 2.0.2
%endif %endif
%if %{with_qemu} %if %{with_qemu}
# From QEMU RPMs # From QEMU RPMs

View File

@ -68,7 +68,7 @@ VIR_ENUM_IMPL(virStoragePoolFormatFileSystem,
VIR_ENUM_IMPL(virStoragePoolFormatFileSystemNet, VIR_ENUM_IMPL(virStoragePoolFormatFileSystemNet,
VIR_STORAGE_POOL_NETFS_LAST, VIR_STORAGE_POOL_NETFS_LAST,
"auto", "nfs") "auto", "nfs", "glusterfs")
VIR_ENUM_IMPL(virStoragePoolFormatDisk, VIR_ENUM_IMPL(virStoragePoolFormatDisk,
VIR_STORAGE_POOL_DISK_LAST, VIR_STORAGE_POOL_DISK_LAST,

View File

@ -178,7 +178,6 @@ struct _virStoragePoolSourceDeviceExtent {
int type; /* free space type */ int type; /* free space type */
}; };
/* /*
* Pools can be backed by one or more devices, and some * Pools can be backed by one or more devices, and some
* allow us to track free space on underlying devices. * allow us to track free space on underlying devices.
@ -399,6 +398,7 @@ VIR_ENUM_DECL(virStoragePoolFormatFileSystem)
enum virStoragePoolFormatFileSystemNet { enum virStoragePoolFormatFileSystemNet {
VIR_STORAGE_POOL_NETFS_AUTO = 0, VIR_STORAGE_POOL_NETFS_AUTO = 0,
VIR_STORAGE_POOL_NETFS_NFS, VIR_STORAGE_POOL_NETFS_NFS,
VIR_STORAGE_POOL_NETFS_GLUSTERFS,
VIR_STORAGE_POOL_NETFS_LAST, VIR_STORAGE_POOL_NETFS_LAST,
}; };
VIR_ENUM_DECL(virStoragePoolFormatFileSystemNet) VIR_ENUM_DECL(virStoragePoolFormatFileSystemNet)