summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2012-09-17 15:19:58 +0530
committerVijay Bellur <vbellur@redhat.com>2012-12-12 00:15:29 -0500
commit7f92dec8c4049727d7d47484d9ee3c8f6313ce94 (patch)
tree86b5f36bda86bb3eb4838d1211eb3b2d4055693e
parent48c1f5c73a5dad514cb239f4a6657c3f085c597a (diff)
group-virt: virt template file added
Change-Id: Ic124e44c3d3068d78e075c9a66ead9ab66ecb241 Signed-off-by: Amar Tumballi <amar@gluster.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/1865 Reviewed-by: Vijay Bellur <vbellur@redhat.com> Tested-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--extras/Makefile.am2
-rw-r--r--extras/group-virt.example6
-rw-r--r--glusterfs.spec.in5
3 files changed, 12 insertions, 1 deletions
diff --git a/extras/Makefile.am b/extras/Makefile.am
index 0c260de..ae15f2c 100644
--- a/extras/Makefile.am
+++ b/extras/Makefile.am
@@ -8,4 +8,4 @@ SUBDIRS = init.d benchmarking hook-scripts
EXTRA_DIST = specgen.scm MacOSX/Portfile glusterfs-mode.el glusterfs.vim \
migrate-unify-to-distribute.sh backend-xattr-sanitize.sh \
backend-cleanup.sh disk_usage_sync.sh quota-remove-xattr.sh \
- quota-metadata-cleanup.sh glusterfs-logrotate
+ quota-metadata-cleanup.sh glusterfs-logrotate group-virt.example
diff --git a/extras/group-virt.example b/extras/group-virt.example
new file mode 100644
index 0000000..75a5ef3
--- /dev/null
+++ b/extras/group-virt.example
@@ -0,0 +1,6 @@
+quick-read=off
+read-ahead=off
+io-cache=off
+stat-prefetch=off
+linux-aio=enable
+eager-lock=enable
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 09ea4fc..484abd8 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -326,6 +326,11 @@ if [ -d /var/lib/glusterd/vols ]; then
done
fi
+# Need to copy the file.
+
+mkdir -p /var/lib/glusterd/groups
+cp %{_docdir}/%{name}-%{version}/group-virt.example /var/lib/glusterd/groups/virt
+
pidof -c -o %PPID -x glusterd &> /dev/null
if [ $? -eq 0 ]; then
kill -9 `pgrep -f gsyncd.py` &> /dev/null