summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 0c260de92a5..ae15f2c78d6 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 00000000000..75a5ef31426
--- /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 09ea4fcafbd..484abd852ef 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