Skip to contentSkip to conversation

Cluster Project branch, master, updated. gfs-kernel_0_1_22-82-gca0ff53

Cluster-devel [email protected] 1 participant 1 message Mar 19, 2008

lore
Share & tools
lore
#0 lore raw

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".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=ca0ff53f1889723bcea026e734a53574a9cbae6e

The branch, master has been updated

       via  ca0ff53f1889723bcea026e734a53574a9cbae6e (commit)
       via  ddf06f1c8d723090aad82f4b742b388b99fc6615 (commit)
       via  cee0863aa683dd7982f5396d5cc50752ca65b10e (commit)
      from  256cd80bd60d1194bc5148fb7bd656a0fd8a5a27 (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 ca0ff53f1889723bcea026e734a53574a9cbae6e
Merge: ddf06f1c8d723090aad82f4b742b388b99fc6615 256cd80bd60d1194bc5148fb7bd656a0fd8a5a27
Author: Bob Peterson <[email protected]>
Date: Wed Mar 19 09:02:13 2008 -0500

Merge branch 'master' of ssh://sources.redhat.com/git/cluster into master.bz431945

commit ddf06f1c8d723090aad82f4b742b388b99fc6615

Author: Bob Peterson <[email protected]>
Date:   Fri Mar 14 11:09:09 2008 -0500

Resolves: bz 431945: GFS: gfs-kernel should use device major:minor

commit cee0863aa683dd7982f5396d5cc50752ca65b10e

Author: Bob Peterson <[email protected]>
Date:   Fri Mar 14 11:17:46 2008 -0500

Resolves: bz 421761: 'gfs_tool lockdump' wrongly says 'unknown mountpoint' re HP cciss RAID array

-----------------------------------------------------------------------

Summary of changes:

 gfs-kernel/src/gfs/proc.c |   13 +++++++-
 gfs/gfs_tool/util.c       |   64 +++++++--------------------------------------
 2 files changed, 21 insertions(+), 56 deletions(-)
gfs-kernel/src/gfs/proc.c +11 -2
index c86b4e6..b58181c 100644
@@ -27,6 +27,7 @@
 #include "lm.h"
 #include "proc.h"
 #include "super.h"
+#include "diaper.h"
 
 struct list_head gfs_fs_list;
 struct semaphore gfs_fs_lock;
@@ -77,16 +78,21 @@ 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;
+	struct block_device *bdevice;
 
 	down(&gfs_fs_lock);
 
 	x = 0;
 	for (tmp = gfs_fs_list.next; tmp != &gfs_fs_list; tmp = tmp->next) {
 		sdp = list_entry(tmp, struct gfs_sbd, sd_list);
+		bdevice = gfs_diaper_2real(sdp->sd_vfs->s_bdev);
+		sprintf(device_id, "%u:%u", MAJOR(bdevice->bd_dev),
+			MINOR(bdevice->bd_dev));
 		x += sprintf(num, "%lu", (unsigned long)sdp) +
-			strlen(sdp->sd_vfs->s_id) +
+			strlen(device_id) +
 			strlen(sdp->sd_fsname) + 3;
 	}
 
@@ -105,8 +111,11 @@ 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);
+		bdevice = gfs_diaper_2real(sdp->sd_vfs->s_bdev);
+		sprintf(device_id, "%u:%u", MAJOR(bdevice->bd_dev),
+			MINOR(bdevice->bd_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))
gfs/gfs_tool/util.c +10 -54

95 lines not on this page · raw message

hooks/post-receive
--
Cluster Project