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:48 +00:00
parent 6cef4ba753
commit 666d4a320e
7 changed files with 14 additions and 34 deletions

View File

@ -1 +1 @@
glusterfs-1.3.9.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,15 +0,0 @@
--- glusterfs-1.3.8.orig/xlators/mount/fuse/utils/mount.glusterfs.in 2008-01-08 12:49:35.000000000 +0100
+++ glusterfs-1.3.8/xlators/mount/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,7 +13,7 @@
Summary: Cluster File System
Name: glusterfs
Version: 1.3.9
Version: 1.3.12
Release: 1%{?dist}
License: GPLv3+
Group: System Environment/Base
@ -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
@ -217,6 +213,14 @@ 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.

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 @@
6a4f46de3928e8c7ea9787b12b172a24 glusterfs-1.3.9.tar.gz
db11e3d9d227f5b10b2a93c0d8929123 glusterfs-1.3.12.tar.gz