Gitweb:
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: a9d8ba2cb7c5ac54569be83c9215c4c7f2ea1ca8
Parent: c4e83e3a01a31074800ba527c961f565247dd73f
Author: Bob Peterson <rpeterso(a)redhat.com>
AuthorDate: Thu Jul 7 11:12:00 2011 -0500
Committer: Bob Peterson <rpeterso(a)redhat.com>
CommitterDate: Wed Sep 28 09:20:30 2011 -0500
libgfs2 limit major/minor numbers to 255
This patch uses the macros for the major/minor numbers so that
the values are not limited to 255.
rhbz#714739
---
gfs2/libgfs2/misc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gfs2/libgfs2/misc.c b/gfs2/libgfs2/misc.c
index 98ffb60..3ff1dc4 100644
--- a/gfs2/libgfs2/misc.c
+++ b/gfs2/libgfs2/misc.c
@@ -593,8 +593,8 @@ char *mp2fsname(char *mp)
return NULL;
memset(device_id, 0, sizeof(device_id));
- sprintf(device_id, "%u:%u", (uint32_t)MAJOR(statbuf.st_dev),
- (uint32_t)MINOR(statbuf.st_dev));
+ sprintf(device_id, "%i:%i", major(statbuf.st_dev),
+ minor(statbuf.st_dev));
d = opendir(SYS_BASE);
if (!d)