]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add new net filesystem glusterfs
authorHarshavardhana <harsha@gluster.com>
Wed, 8 Jul 2009 09:46:25 +0000 (11:46 +0200)
committerDaniel Veillard <veillard@redhat.com>
Wed, 8 Jul 2009 09:46:25 +0000 (11:46 +0200)
* 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

libvirt.spec.in
src/storage_conf.c
src/storage_conf.h

index 857221e8826f20b55cdd29fc8128b2ff9b822de2..6321eaa35d84348ca0cb948074222d6b35232e24 100644 (file)
@@ -94,6 +94,8 @@ BuildRequires: util-linux
 # For showmount in FS driver (netfs discovery)
 BuildRequires: nfs-utils
 Requires: nfs-utils
+# For glusterfs
+Requires: glusterfs-client >= 2.0.2
 %endif
 %if %{with_qemu}
 # From QEMU RPMs
index f5d9b6ce72157e3a6aa6eb9840d2b8fee3508425..fe1dc902889f1e417eacff7c0118ca20b2c5b509 100644 (file)
@@ -68,7 +68,7 @@ VIR_ENUM_IMPL(virStoragePoolFormatFileSystem,
 
 VIR_ENUM_IMPL(virStoragePoolFormatFileSystemNet,
               VIR_STORAGE_POOL_NETFS_LAST,
-              "auto", "nfs")
+              "auto", "nfs", "glusterfs")
 
 VIR_ENUM_IMPL(virStoragePoolFormatDisk,
               VIR_STORAGE_POOL_DISK_LAST,
index 61d3841007bb943e5405b3d2aba302b8e043b6e5..a6c3650bd9512964a4984bc6e7bddc3944b45af6 100644 (file)
@@ -178,7 +178,6 @@ struct _virStoragePoolSourceDeviceExtent {
     int type;  /* free space type */
 };
 
-
 /*
  * Pools can be backed by one or more devices, and some
  * allow us to track free space on underlying devices.
@@ -399,6 +398,7 @@ VIR_ENUM_DECL(virStoragePoolFormatFileSystem)
 enum virStoragePoolFormatFileSystemNet {
     VIR_STORAGE_POOL_NETFS_AUTO = 0,
     VIR_STORAGE_POOL_NETFS_NFS,
+    VIR_STORAGE_POOL_NETFS_GLUSTERFS,
     VIR_STORAGE_POOL_NETFS_LAST,
 };
 VIR_ENUM_DECL(virStoragePoolFormatFileSystemNet)