Skip to contentSkip to conversation

Cluster Project branch, master, updated. cluster-2.99.03-9-g975ce1c

Cluster-devel [email protected] 1 participant 1 message Jun 4, 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=975ce1c9f317882e782126ff742703991495fc8b

The branch, master has been updated

       via  975ce1c9f317882e782126ff742703991495fc8b (commit)
       via  f31be740f86d6b60cb9e6f8ab9b1673b4f05355d (commit)
       via  23b0fde400ab75dea7c9c38e63d7db591b3ffe58 (commit)
      from  61ac9778debcac15145f4b061af450b809089908 (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 975ce1c9f317882e782126ff742703991495fc8b

Author: Bob Peterson <[email protected]>
Date:   Wed Jun 4 14:33:30 2008 -0500

Updates to gfs2_edit man page for new option.

commit f31be740f86d6b60cb9e6f8ab9b1673b4f05355d

Author: Bob Peterson <[email protected]>
Date:   Wed Jun 4 14:26:48 2008 -0500

Make gfs2_edit more friendly to automated testing.

commit 23b0fde400ab75dea7c9c38e63d7db591b3ffe58

Author: Bob Peterson <[email protected]>
Date:   Wed Jun 4 14:24:05 2008 -0500

Fix gfs2_edit bugs with non-4K block sizes

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

Summary of changes:

 gfs2/edit/gfs2hex.c  |   13 ++---
 gfs2/edit/hexedit.c  |  141 +++++++++++++++++++++++++++++++------------------
 gfs2/edit/hexedit.h  |    1 -
 gfs2/edit/savemeta.c |   58 ++++++++++----------
 gfs2/man/gfs2_edit.8 |    4 ++
 5 files changed, 128 insertions(+), 89 deletions(-)
gfs2/edit/gfs2hex.c +6 -7
index 7262d78..082f5b6 100644
@@ -38,7 +38,6 @@
 extern struct gfs2_sb sb;
 extern char *buf;
 extern struct gfs2_dinode di;
-extern uint64_t bufsize;
 extern int line, termlines;
 extern char edit_fmt[80];
 extern char estring[1024];
@@ -226,7 +225,7 @@ void do_dinode_extended(struct gfs2_dinode *di, char *buf)
 	memset(indirect, 0, sizeof(indirect));
 	if (di->di_height > 0) {
 		/* Indirect pointers */
-		for (x = sizeof(struct gfs2_dinode); x < bufsize;
+		for (x = sizeof(struct gfs2_dinode); x < sbd.bsize;
 			 x += sizeof(uint64_t)) {
 			p = be64_to_cpu(*(uint64_t *)(buf + x));
 			if (p) {
@@ -243,7 +242,7 @@ void do_dinode_extended(struct gfs2_dinode *di, char *buf)
 		indirect->ii[0].dirents = 0;
 		indirect->ii[0].block = block;
 		indirect->ii[0].is_dir = TRUE;
-		for (x = sizeof(struct gfs2_dinode); x < bufsize; x += skip) {
+		for (x = sizeof(struct gfs2_dinode); x < sbd.bsize; x += skip) {
 			skip = indirect_dirent(indirect->ii,
 					       buf + x,
 					       indirect->ii[0].dirents);
@@ -275,7 +274,7 @@ void do_dinode_extended(struct gfs2_dinode *di, char *buf)
 				gfs2_leaf_in(&leaf, tmp_bh->b_data);
 				indirect->ii[indirect_blocks].dirents = 0;
 				for (direntcount = 0, bufoffset = sizeof(struct gfs2_leaf);
-					 bufoffset < bufsize;
+					 bufoffset < sbd.bsize;
 					 direntcount++, bufoffset += skip) {
 					skip = indirect_dirent(&indirect->ii[indirect_blocks],
 										   tmp_bh->b_data + bufoffset,
@@ -317,7 +316,7 @@ int do_indirect_extended(char *buf, struct iinfo *iinf)
 	memset(iinf, 0, sizeof(struct iinfo));
 	for (x = (gfs1 ? sizeof(struct gfs_indirect):
 			  sizeof(struct gfs2_meta_header)), y = 0;
-		 x < bufsize;
+		 x < sbd.bsize;
 		 x += sizeof(uint64_t), y++) {
 		p = be64_to_cpu(*(uint64_t *)(buf + x));
 		if (p) {
@@ -352,7 +351,7 @@ void do_leaf_extended(char *buf, struct iinfo *indir)
 	x = 0;
 	memset(indir, 0, sizeof(indir));
 	/* Directory Entries: */
-	for (i = sizeof(struct gfs2_leaf); i < bufsize;
+	for (i = sizeof(struct gfs2_leaf); i < sbd.bsize;
 	     i += de.de_rec_len) {
 		gfs2_dirent_in(&de, buf + i);
 		if (de.de_inum.no_addr) {
@@ -399,7 +398,7 @@ void do_eattr_extended(char *buf)
 	print_gfs2("Eattr Entries:");
 	eol(0);
 
-	for (x = sizeof(struct gfs2_meta_header); x < bufsize; x += ea.ea_rec_len)
+	for (x = sizeof(struct gfs2_meta_header); x < sbd.bsize; x += ea.ea_rec_len)
 	{
 		eol(0);
 		gfs2_ea_header_in(&ea, buf + x);
gfs2/edit/hexedit.c +89 -52

344 lines not on this page · raw message

gfs2/edit/hexedit.h +0 -1
index 40cf47c..1ff2775 100644
@@ -74,7 +74,6 @@ EXTERN char estring[1024]; /* edit string */
 EXTERN uint64_t dev_offset INIT(0);
 EXTERN uint64_t max_block INIT(0);
 EXTERN char *buf INIT(NULL);
-EXTERN uint64_t bufsize INIT(4096);
 EXTERN int termlines INIT(30);
 EXTERN int termcols INIT(80);
 EXTERN int insert INIT(0);
gfs2/edit/savemeta.c +29 -29

155 lines not on this page · raw message

gfs2/man/gfs2_edit.8 +4 -0
index 022382f..5cd3e16 100644
@@ -126,6 +126,10 @@ block in the file system for metadata.  This option is less prone to failure
 due to file system corruption than the savemeta option, but it is 
 extremely slow.
 .TP
+\fBsavergs\fP \fI<device>\fR \fI<filename>\fR
+Save off only the GFS2 resource group metadata for the file system on the
+specified device to a file given by <filename>.
+.TP
 \fBrestoremeta\fP \fI<filename>\fR \fI<dest device>\fR
 Take a file created with the savemeta option and restores its
 contents on top of the specified destination device.  \fBWARNING\fP:

hooks/post-receive
--
Cluster Project