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 294291 Details for
Bug 431945
GFS: gfs-kernel should use device major:minor
[?]
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 patch to fix the problem
431945.gfs.device_id.patch (text/plain), 1.32 KB, created by
Robert Peterson
on 2008-02-07 23:52:16 UTC
(
hide
)
Description:
Proposed patch to fix the problem
Filename:
MIME Type:
Creator:
Robert Peterson
Created:
2008-02-07 23:52:16 UTC
Size:
1.32 KB
patch
obsolete
>Index: proc.c >=================================================================== >RCS file: /cvs/cluster/cluster/gfs-kernel/src/gfs/proc.c,v >retrieving revision 1.6 >diff -w -u -p -p -u -r1.6 proc.c >--- proc.c 4 Jan 2005 10:07:12 -0000 1.6 >+++ proc.c 7 Feb 2008 23:46:25 -0000 >@@ -77,6 +77,7 @@ do_list(char *user_buf, size_t size) > struct gfs_sbd *sdp = NULL; > unsigned int x; > char num[21]; >+ char device_id[32]; > char *buf; > int error = 0; > >@@ -85,8 +86,10 @@ do_list(char *user_buf, size_t size) > x = 0; > for (tmp = gfs_fs_list.next; tmp != &gfs_fs_list; tmp = tmp->next) { > sdp = list_entry(tmp, struct gfs_sbd, sd_list); >+ sprintf(device_id, "%u:%u", MAJOR(sdp->sd_vfs->s_dev), >+ MINOR(sdp->sd_vfs->s_dev)); > x += sprintf(num, "%lu", (unsigned long)sdp) + >- strlen(sdp->sd_vfs->s_id) + >+ strlen(device_id) + > strlen(sdp->sd_fsname) + 3; > } > >@@ -105,8 +108,10 @@ do_list(char *user_buf, size_t size) > x = 0; > for (tmp = gfs_fs_list.next; tmp != &gfs_fs_list; tmp = tmp->next) { > sdp = list_entry(tmp, struct gfs_sbd, sd_list); >+ sprintf(device_id, "%u:%u", MAJOR(sdp->sd_vfs->s_dev), >+ MINOR(sdp->sd_vfs->s_dev)); > x += sprintf(buf + x, "%lu %s %s\n", >- (unsigned long)sdp, sdp->sd_vfs->s_id, sdp->sd_fsname); >+ (unsigned long)sdp, device_id, sdp->sd_fsname); > } > > if (copy_to_user(user_buf, buf, x))
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 431945
:
294291
|
294401