Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 311380 Details for
Bug 315741
Groupd: service cman start fails if local gfs2 is mounted
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
patch to test
groupd-nolock.patch (text/plain), 1.80 KB, created by
David Teigland
on 2008-07-09 14:58:07 UTC
(
hide
)
Description:
patch to test
Filename:
MIME Type:
Creator:
David Teigland
Created:
2008-07-09 14:58:07 UTC
Size:
1.80 KB
patch
obsolete
>commit 1d5d0b3c01922b8034e3bdfadd1e36cdc5b4b64b >Author: David Teigland <teigland@redhat.com> >Date: Wed Jul 9 09:49:58 2008 -0500 > > gfs_controld: ignore nolock gfs > > When starting up, we look for existing, "uncontrolled" gfs file systems > in the kernel (which would require the node to be rebooted.) This check > needs to ignore nolock fs's. > > Signed-off-by: David Teigland <teigland@redhat.com> > >diff --git a/group/daemon/main.c b/group/daemon/main.c >index 19fbf48..dc432a4 100644 >--- a/group/daemon/main.c >+++ b/group/daemon/main.c >@@ -106,6 +106,34 @@ static int do_read(int fd, void *buf, size_t count) > - we won't be in groupd cpg until after we've verified there's no > local residual gfs/dlm state */ > >+static int ignore_gfs_nolock(char *sysfs_dir, char *table) >+{ >+ char path[PATH_MAX]; >+ char buf[32]; >+ int rv, fd; >+ >+ if (!strstr(sysfs_dir, "gfs")) >+ return 0; >+ >+ memset(path, 0, PATH_MAX); >+ >+ snprintf(path, PATH_MAX, "%s/%s/lock_module/proto_name", >+ sysfs_dir, table); >+ >+ fd = open(path, O_RDONLY); >+ if (fd < 0) >+ return 0; >+ >+ rv = read(fd, buf, sizeof(buf)); >+ if (rv < 0) >+ return 0; >+ >+ if (strstr(buf, "lock_nolock")) >+ return 1; >+ >+ return 0; >+} >+ > static int kernel_instance_count(char *sysfs_dir) > { > char path[PATH_MAX]; >@@ -124,6 +152,9 @@ static int kernel_instance_count(char *sysfs_dir) > if (de->d_name[0] == '.') > continue; > >+ if (ignore_gfs_nolock(sysfs_dir, de->d_name)) >+ continue; >+ > log_print("found uncontrolled kernel object %s in %s", > de->d_name, sysfs_dir); > rv++; >@@ -138,8 +169,6 @@ int check_uncontrolled_groups(void) > char *argv[4]; > int status, rv = 0; > >- /* FIXME: ignore gfs/gfs2 nolock fs's */ >- > rv += kernel_instance_count("/sys/kernel/dlm"); > rv += kernel_instance_count("/sys/fs/gfs"); > rv += kernel_instance_count("/sys/fs/gfs2");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 315741
: 311380 |
311504