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 608257 Details for
Bug 853180
Cluster doesn't start if GFS2 is mounted as "lock_nolock"
[?]
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]
Proposed and tested patch
rhel6.gfs_controld.patch (text/plain), 1.51 KB, created by
Robert Peterson
on 2012-08-30 16:45:14 UTC
(
hide
)
Description:
Proposed and tested patch
Filename:
MIME Type:
Creator:
Robert Peterson
Created:
2012-08-30 16:45:14 UTC
Size:
1.51 KB
patch
obsolete
>commit 8e16ce498450bc2040879b1de4d4f3da0eb795f2 >Author: Bob Peterson <rpeterso@redhat.com> >Date: Thu Aug 30 09:59:54 2012 -0500 > > gfs_controld: fix mounted nolock check > > kernel now shows lock_module/proto_name > >diff --git a/fence/fenced/main.c b/fence/fenced/main.c >index cc11382..827dab6 100644 >--- a/fence/fenced/main.c >+++ b/fence/fenced/main.c >@@ -636,7 +636,8 @@ static void register_controlled_dir(const char *path) > static int ignore_nolock(char *sysfs_dir, char *table) > { > char path[PATH_MAX]; >- int fd; >+ char buf[32]; >+ int fd, rv; > > memset(path, 0, PATH_MAX); > >@@ -650,7 +651,16 @@ static int ignore_nolock(char *sysfs_dir, char *table) > if (fd < 0) > return 1; > >+ memset(buf, 0, sizeof(buf)); >+ >+ rv = read(fd, buf, sizeof(buf)); > close(fd); >+ if (rv < 0) >+ return 1; >+ >+ if (!strncmp(buf, "lock_nolock", 11)) >+ return 1; >+ > return 0; > } > >diff --git a/group/gfs_controld/util.c b/group/gfs_controld/util.c >index 7aea26e..80e2bf7 100644 >--- a/group/gfs_controld/util.c >+++ b/group/gfs_controld/util.c >@@ -217,7 +217,8 @@ void update_dmsetup_wait(void) > static int ignore_nolock(const char *sysfs_dir, char *table) > { > char path[PATH_MAX]; >- int fd; >+ char buf[32]; >+ int fd, rv; > > memset(path, 0, PATH_MAX); > >@@ -231,7 +232,16 @@ static int ignore_nolock(const char *sysfs_dir, char *table) > if (fd < 0) > return 1; > >+ memset(buf, 0, sizeof(buf)); >+ >+ rv = read(fd, buf, sizeof(buf)); > close(fd); >+ if (rv < 0) >+ return 1; >+ >+ if (!strncmp(buf, "lock_nolock", 11)) >+ return 1; >+ > return 0; > } >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 853180
: 608257