Cluster Project branch, STABLE2, updated. cluster-2.03.03-7-gf21cbeb
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".
The branch, STABLE2 has been updated
via f21cbeb482fad5eab16e2f14dc65dcd07d1afcaf (commit)
via d0fa71839be16af2f82b3bc8129f1ec0639fb6e5 (commit)
via 77bf8a9c23b46f93b9a1bf8b80146002694c6750 (commit)
from ab51857c0232d079ddbd8ec0a3b9c4c8a7faa645 (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 f21cbeb482fad5eab16e2f14dc65dcd07d1afcaf
Author: Bob Peterson <[email protected]> Date: Wed Jun 4 14:33:30 2008 -0500
Updates to gfs2_edit man page for new option.
commit d0fa71839be16af2f82b3bc8129f1ec0639fb6e5
Author: Bob Peterson <[email protected]> Date: Wed Jun 4 14:26:48 2008 -0500
Make gfs2_edit more friendly to automated testing.
commit 77bf8a9c23b46f93b9a1bf8b80146002694c6750
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
@@ -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
@@ -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
@@ -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