Update to latest stable 1.3.12 and backport to all current branches.

This commit is contained in:
Matthias Saou 2009-02-16 12:24:47 +00:00
parent 854391f19c
commit 486fdccb4e
7 changed files with 32 additions and 36 deletions

View File

@ -1 +1 @@
glusterfs-1.3.8.tar.gz
glusterfs-1.3.12.tar.gz

View File

@ -1,12 +0,0 @@
diff -Naupr glusterfs-1.3.7.orig/xlators/protocol/server/src/server-protocol.c glusterfs-1.3.7/xlators/protocol/server/src/server-protocol.c
--- glusterfs-1.3.7.orig/xlators/protocol/server/src/server-protocol.c 2007-10-16 09:37:00.000000000 +0200
+++ glusterfs-1.3.7/xlators/protocol/server/src/server-protocol.c 2007-11-26 11:49:05.000000000 +0100
@@ -4930,7 +4930,7 @@ mop_setspec (call_frame_t *frame,
goto fail;
}
- ret = open (GLUSTERFSD_SPEC_PATH, O_WRONLY | O_CREAT | O_SYNC);
+ ret = open (GLUSTERFSD_SPEC_PATH, O_WRONLY | O_CREAT | O_SYNC, 0644);
spec_fd = ret;
if (spec_fd < 0){
remote_errno = errno;

View File

@ -1,16 +0,0 @@
diff -Naupr glusterfs-1.3.8.orig/glusterfs-fuse/utils/mount.glusterfs.in glusterfs-1.3.8/glusterfs-fuse/utils/mount.glusterfs.in
--- glusterfs-1.3.8.orig/glusterfs-fuse/utils/mount.glusterfs.in 2008-01-08 12:49:35.000000000 +0100
+++ glusterfs-1.3.8/glusterfs-fuse/utils/mount.glusterfs.in 2008-01-08 13:44:30.000000000 +0100
@@ -121,6 +121,12 @@ main ()
# $2=$(echo "$@" | sed -n 's/[^ ]* \([^ ]*\).*/\1/p');
mount_point="$2";
+
+ # Simple check to avoid multiple identical mounts
+ if grep -q "glusterfs $mount_point fuse" /etc/mtab; then
+ echo "$0: according to mtab, a glusterfs is already mounted on $mount_point"
+ exit 1
+ fi
fs_options=$(echo "$fs_options,$new_fs_options");

View File

@ -13,8 +13,8 @@
Summary: Cluster File System
Name: glusterfs
Version: 1.3.8
Release: 0.8%{?dist}
Version: 1.3.12
Release: 1%{?dist}
License: GPLv3+
Group: System Environment/Base
URL: http://www.gluster.org/docs/index.php/GlusterFS
@ -22,8 +22,6 @@ Source0: http://ftp.zresearch.com/pub/gluster/glusterfs/1.3/glusterfs-%{version}
Source1: glusterfsd.init
Source2: glusterfsd.sysconfig
Source3: umount.glusterfs
Patch0: glusterfs-1.3.7-ocreat.patch
Patch1: glusterfs-1.3.8-mount.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/service, /sbin/chkconfig
@ -115,8 +113,6 @@ This package provides the development libraries.
%prep
%setup -q
%patch0 -p1 -b .ocreat
%patch1 -p1 -b .mount
%build
@ -193,6 +189,7 @@ fi
/sbin/mount.glusterfs
/sbin/umount.glusterfs
%dir /var/log/glusterfs/
%{_mandir}/man8/glusterfs.8*
%endif
@ -202,8 +199,10 @@ fi
%config(noreplace) %{_sysconfdir}/glusterfs/*.vol
%config(noreplace) %{_sysconfdir}/sysconfig/glusterfsd
%{_sysconfdir}/init.d/glusterfsd
%{_sbindir}/glusterfs
%{_sbindir}/glusterfsd
%dir /var/log/glusterfs/
%{_mandir}/man8/glusterfs.8*
%files devel
@ -214,6 +213,28 @@ fi
%changelog
* Mon Feb 16 2009 Matthias Saou <http://freshrpms.net/> 1.3.12-1
- Update to 1.3.12.
- Remove no longer needed ocreat patch.
* Thu Jul 17 2008 Matthias Saou <http://freshrpms.net/> 1.3.10-1
- Update to 1.3.10.
- Remove mount patch, it's been included upstream now.
* Fri May 16 2008 Matthias Saou <http://freshrpms.net/> 1.3.9-1
- Update to 1.3.9.
* Fri May 9 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-1
- Update to 1.3.8 final.
* Tue Apr 23 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.10
- Include short patch to include fixes from latest TLA 751.
* Mon Apr 22 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.9
- Update to 1.3.8pre6.
- Include glusterfs binary in both the client and server packages, now that
glusterfsd is a symlink to it instead of a separate binary.
* Sun Feb 3 2008 Matthias Saou <http://freshrpms.net/> 1.3.8-0.8
- Add python version check and disable bindings for version < 2.4.

View File

@ -20,10 +20,12 @@ RETVAL=0
GLUSTERFSD_CONFIG="/etc/glusterfs/glusterfs-server.vol"
GLUSTERFSD_LOGFILE="/var/log/glusterfs/glusterfsd.log"
GLUSTERFSD_LOGLEVEL="WARNING"
GLUSTERFSD_NOFILE="65536"
[ -f /etc/sysconfig/glusterfsd ] && source /etc/sysconfig/glusterfsd
start() {
echo -n $"Starting $prog: "
ulimit -n ${GLUSTERFSD_NOFILE}
daemon $glusterfsd -f ${GLUSTERFSD_CONFIG} -l ${GLUSTERFSD_LOGFILE} -L ${GLUSTERFSD_LOGLEVEL}
RETVAL=$?
echo

View File

@ -4,4 +4,5 @@
#GLUSTERFSD_CONFIG="/etc/glusterfs/glusterfs-server.vol"
#GLUSTERFSD_LOGFILE="/var/log/glusterfs/glusterfsd.log"
#GLUSTERFSD_LOGLEVEL="ERROR"
#GLUSTERFSD_NOFILE="65536"

View File

@ -1 +1 @@
eb7ebc04cab10966877863f31799382d glusterfs-1.3.8.tar.gz
db11e3d9d227f5b10b2a93c0d8929123 glusterfs-1.3.12.tar.gz