From 2562303a45229b71bb32abaf4f516d276e895f75 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 8 Jul 2009 11:46:25 +0200 Subject: [PATCH] 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 --- libvirt.spec.in | 2 ++ src/storage_conf.c | 2 +- src/storage_conf.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 857221e882..6321eaa35d 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -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 diff --git a/src/storage_conf.c b/src/storage_conf.c index f5d9b6ce72..fe1dc90288 100644 --- a/src/storage_conf.c +++ b/src/storage_conf.c @@ -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, diff --git a/src/storage_conf.h b/src/storage_conf.h index 61d3841007..a6c3650bd9 100644 --- a/src/storage_conf.h +++ b/src/storage_conf.h @@ -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) -- GitLab