From 6e851445ce33aa7ac41a8464804466045082b10f Mon Sep 17 00:00:00 2001 From: Lakshmipathi Date: Tue, 6 Sep 2011 14:36:25 +0530 Subject: create rbstate file for each volume Change-Id: Ib0045149fcdfcfb801b2f1f0a10417b04e294fef BUG: 3432 Reviewed-on: http://review.gluster.com/351 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- glusterfs.spec.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/glusterfs.spec.in b/glusterfs.spec.in index ffbe2812f..b2439e272 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 -- cgit