[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] Cluster Project branch, master, updated. gfs-kernel_0_1_22-190-gacfe61e

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".


The branch, master has been updated
       via  acfe61e4b1edc65b69416ac06964a0831b50b50d (commit)
       via  53f93f18b996c590de34f21a6eb3f14236f1cf69 (commit)
       via  0beeaf51b376f00d5ec8c9354caa8e79a623b029 (commit)
      from  032432b43f211f8b592f9771c9cbfb74e1996a23 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit acfe61e4b1edc65b69416ac06964a0831b50b50d
Author: Benjamin Marzinski <bmarzins redhat com>
Date:   Thu Apr 17 11:41:09 2008 -0500

    The gnbd kernel module on 64 bit architectures didn't handle ioctls from 32 bit
    userspace processes. Now it does.
    Resolves: bz #440454
    Also, I was getting an error because on ppc64, the manual definition of O_DIRECT
    in gnbd/server/device.c was incorrect. I switched to defining _GNU_SOURCE, which
    should mean that O_DIRECT will be automatically defined.

commit 53f93f18b996c590de34f21a6eb3f14236f1cf69
Author: Lon Hohberger <lhh redhat com>
Date:   Wed Nov 14 17:17:15 2007 +0000

    Remove clushutdown man page references from clusvcadm.8; resolves #324151

commit 0beeaf51b376f00d5ec8c9354caa8e79a623b029
Author: Fabio M. Di Nitto <fdinitto redhat com>
Date:   Tue Apr 22 09:36:30 2008 +0200

    [rgmanager] Remove obsolete clushutdown utility
    Merge from RHEL5 branch.
    Signed-off-by: Fabio M. Di Nitto <fdinitto redhat com>


Summary of changes:
 gnbd-kernel/src/gnbd.c          |   33 ++++++++++++++++++++++++
 gnbd/server/device.c            |    7 +---
 rgmanager/man/clushutdown.8     |   13 ---------
 rgmanager/man/clusvcadm.8       |   13 +++------
 rgmanager/src/utils/clushutdown |   53 ---------------------------------------
 5 files changed, 39 insertions(+), 80 deletions(-)
 delete mode 100644 rgmanager/man/clushutdown.8
 delete mode 100755 rgmanager/src/utils/clushutdown

diff --git a/gnbd-kernel/src/gnbd.c b/gnbd-kernel/src/gnbd.c
index 9a6abe3..21ecf9d 100644
--- a/gnbd-kernel/src/gnbd.c
+++ b/gnbd-kernel/src/gnbd.c
@@ -30,6 +30,9 @@
 #include <linux/buffer_head.h>
 #include <linux/miscdevice.h>
 #include <linux/moduleparam.h>
+#include <linux/compat.h>
 #include <asm/uaccess.h>
 #include <asm/types.h>
@@ -795,6 +798,33 @@ static int gnbd_ctl_ioctl(struct inode *inode, struct file *file,
 	return -EINVAL;
+static long gnbd_ctl_compat_ioctl(struct file *f, unsigned cmd,
+				  unsigned long arg)
+	int ret;
+	switch (cmd) {
+        case GNBD_DISCONNECT:
+        case GNBD_CLEAR_QUE:
+	case GNBD_PING:
+		lock_kernel();
+		ret = gnbd_ctl_ioctl(f->f_dentry->d_inode, f, cmd, arg);
+		unlock_kernel();
+		return ret;
+	case GNBD_DO_IT:
+		lock_kernel();
+		ret = gnbd_ctl_ioctl(f->f_dentry->d_inode, f, cmd,
+				     (unsigned long)compat_ptr(arg));
+		unlock_kernel();
+		return ret;
+	default:
+		return -ENOIOCTLCMD;
+	}
 static int gnbd_open(struct inode *inode, struct file *file)
 	struct gnbd_device *dev = inode->i_bdev->bd_disk->private_data;
@@ -830,6 +860,9 @@ static int gnbd_release(struct inode *inode, struct file *file)
 static struct file_operations _gnbd_ctl_fops =
         .ioctl = gnbd_ctl_ioctl,
+	.compat_ioctl = gnbd_ctl_compat_ioctl,
         .owner = THIS_MODULE,
diff --git a/gnbd/server/device.c b/gnbd/server/device.c
index 2c830ae..b547897 100644
--- a/gnbd/server/device.c
+++ b/gnbd/server/device.c
@@ -10,6 +10,7 @@
+#define _GNU_SOURCE
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
@@ -27,10 +28,6 @@
 #define BLKGETSIZE64 _IOR(0x12, 114, uint64_t)
-#ifndef O_DIRECT
-#define O_DIRECT 040000
 #include "list.h"
 #include "gnbd_utils.h"
 #include "local_req.h"
@@ -106,7 +103,7 @@ int open_file(char *path, unsigned int flags, int *devfd)
   if (fd < 0){
     err = -errno;
     log_err("cannot open %s in %s%s mode : %s\n", path,
-           (flags & GNBD_FLAGS_READONLY)? "O_RDONLY" : "O_RDWR | OSYNC",
+           (flags & GNBD_FLAGS_READONLY)? "O_RDONLY" : "O_RDWR | O_SYNC",
            (flags & GNBD_FLAGS_UNCACHED)? " | O_DIRECT" : "",
     return err;
diff --git a/rgmanager/man/clushutdown.8 b/rgmanager/man/clushutdown.8
deleted file mode 100644
index c63159f..0000000
--- a/rgmanager/man/clushutdown.8
+++ /dev/null
@@ -1,13 +0,0 @@
-.TH "clushutdown" "27" "Jan 2005" "" "Red Hat Cluster Suite"
-clushutdown \- Cluster Mass Service Shutdown
-.B Clushutdown
-is responsible for stopping all services and ensuring that none are restarted
-when a member goes off line.  It is only useful for situations where an 
-administrator needs to take enough cluster members offline such that the
-cluster quorum will be disrupted.  This is not required for shutting down a
-single member when all other members are online.
diff --git a/rgmanager/man/clusvcadm.8 b/rgmanager/man/clusvcadm.8
index dcc5691..20ae823 100644
--- a/rgmanager/man/clusvcadm.8
+++ b/rgmanager/man/clusvcadm.8
@@ -49,12 +49,8 @@ service
 Lock the local resource group manager.  This should only be used if the 
 administrator intends to perform a global, cluster-wide shutdown.  This
 prevents starting resource groups on the local node, allowing 
-services will not fail over during the shutdown of the cluster.  Generally,
-administrators should use the
-command to accomplish this.  Once the cluster quorum is dissolved, this
-state is reset.
+services will not fail over during the shutdown of the cluster.
+Once the cluster quorum is dissolved, this state is reset.
 .IP "\-m <member>"
 When used in conjunction with either the
@@ -88,11 +84,10 @@ service
 until a member transition or until it is enabled again.
 .IP \-u
 Unlock the cluster's service managers.  This allows services to transition
-again.  It will be necessary to re-enable all services in the stopped state
-if this is run after \fB clushutdown(8)\fR.
 .IP \-v
 Display version information and exit.
-clustat(8), clushutdown(8)
diff --git a/rgmanager/src/utils/clushutdown b/rgmanager/src/utils/clushutdown
deleted file mode 100755
index ef3eb72..0000000
--- a/rgmanager/src/utils/clushutdown
+++ /dev/null
@@ -1,53 +0,0 @@
-# Stop all services and prepare the cluster for a TCO.
-. /etc/init.d/functions
-action $"Ensuring this member is in the Quorum:" clustat -Q
-if [ $? -ne 0 ]; then
-	exit 1
-echo "WARNING: About to stop ALL services managed by Red Hat Cluster Manager."
-echo "         This should only be done when maintainence is required on "
-echo "         enough members to dissolve the Cluster Quorum.  This utility"
-echo "         generally does not need to be run when one cluster member"
-echo "         requires maintenance.  This NEVER needs to be run in two"
-echo "         member clusters."
-echo -n "Continue [yes/NO]? "
-read a
-if [ "$a" != "YES" -a "$a" != "yes" ]; then
-	echo
-	echo Aborted.
-	exit 0
-action $"Preparing for global service shutdown:" clusvcadm -u
-if [ $? -ne 0 ]; then
-	exit 1;
-for s in `cludb -m services%service[0-9]+%name | cut -f2 -d=`; do
-	action "Stopping service $s: " clusvcadm -q -s $s
-	if [ $? -ne 0 ]; then
-		exit 1
-	fi
-echo "All clustered services are stopped."
-action $"Locking service managers:" clusvcadm -l
-if [ $? -ne 0 ]; then
-	exit 1
-echo $"It is now safe to shut down all cluster members.  Be advised that"
-echo $"members not controlled by power switches may still reboot when "
-echo $"when the cluster quorum is disbanded."
-exit 0

Cluster Project

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]