summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmipathi <lakshmipathi@gluster.com>2011-09-06 14:36:25 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-07 01:29:58 -0700
commit6e851445ce33aa7ac41a8464804466045082b10f (patch)
treee1ce5eae4f83cc1b76b3d1c0eeafae310fad454b
parentf9fa468090bd29cea38458ea2605a11c10909ab1 (diff)
create rbstate file for each volume
Change-Id: Ib0045149fcdfcfb801b2f1f0a10417b04e294fef BUG: 3432 Reviewed-on: http://review.gluster.com/351 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r--glusterfs.spec.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index ffbe281..b2439e2 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -136,6 +136,13 @@ find %{buildroot}%{_libdir} -name '*.a' | xargs rm -f
/sbin/ldconfig
/sbin/chkconfig --add glusterd
+#create rbstate file
+if [ -d /etc/glusterd/vols ]; then
+for file in `find /etc/glusterd/vols -type f -name info`;
+do
+grep "rb_" $file &> /tmp/rbstate && mv /tmp/rbstate `dirname $file` && sed -i.bck '/rb_/d' $file
+done
+fi
#update /etc/ld.so.conf.d
echo "%{_prefix}/lib64" > /etc/ld.so.conf.d/glusterfs.conf