Cluster Project branch, RHEL5, updated. cmirror_1_1_15-161-g5ff7b66
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, RHEL5 has been updated
via 5ff7b6671b739796e5c3f4f2f8cc0005015936cc (commit)
via e9edb213078c4d59a5f229a98cb157fcbe977df8 (commit)
via dee2b071cdace918515cddd1904df1d5d86c7dfc (commit)
via 7492a086097d72db89d105f0f38004e7a106a1c4 (commit)
via 28610e88b1706a296780193bbb7b6072bb972c24 (commit)
via 8a4a16fd453c507b6d9aa492b5f0bbb687b40c64 (commit)
via 4a138cb97b20c1abd2aa4c7740a27d80b3a060eb (commit)
via 47f97db79bef3295e490c86bdefc37ba5c58e58e (commit)
via ddcf644dfa303fb2ca2363a6f34033438dd358c7 (commit)
via 6d4364e8aaec211b27ce19ae2997351d7d179263 (commit)
via d4b869fcf12cdae55f9558d69dc254aa675b09e8 (commit)
from b2916471b1b7c79dba7f9624a1a148240375891f (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 5ff7b6671b739796e5c3f4f2f8cc0005015936cc
Author: Bob Peterson <[email protected]> Date: Wed Jul 16 19:02:56 2008 -0500
Print log header flags for gfs journals.
commit e9edb213078c4d59a5f229a98cb157fcbe977df8
Author: Bob Peterson <[email protected]> Date: Thu Jul 10 16:12:53 2008 -0500
Fix some minor white space issues.
commit dee2b071cdace918515cddd1904df1d5d86c7dfc
Author: Bob Peterson <[email protected]> Date: Mon Jun 23 10:11:35 2008 -0500
savemeta was not saving gfs1 journals properly.
commit 7492a086097d72db89d105f0f38004e7a106a1c4
Author: Bob Peterson <[email protected]> Date: Thu Jun 5 18:00:07 2008 -0500
Ability to specify starting block or structure with -s
commit 28610e88b1706a296780193bbb7b6072bb972c24
Author: Bob Peterson <[email protected]> Date: Thu Jun 5 16:23:37 2008 -0500
Allow keywords in block number input
commit 8a4a16fd453c507b6d9aa492b5f0bbb687b40c64
Author: Bob Peterson <[email protected]> Date: Thu Jun 5 13:47:16 2008 -0500
Updates to gfs2_edit man page for new options.
commit 4a138cb97b20c1abd2aa4c7740a27d80b3a060eb
Author: Bob Peterson <[email protected]> Date: Wed Jun 4 08:39:20 2008 -0500
Fix gfs2_edit bugs with non-4K block sizes
commit 47f97db79bef3295e490c86bdefc37ba5c58e58e
Author: Bob Peterson <[email protected]> Date: Thu Apr 10 10:45:47 2008 -0500
Fix some compiler warnings in gfs2_edit
commit ddcf644dfa303fb2ca2363a6f34033438dd358c7
Author: Bob Peterson <[email protected]> Date: Thu Apr 10 10:45:47 2008 -0500
gfs2_edit was not recalculating the max block size after it figured that out.
commit 6d4364e8aaec211b27ce19ae2997351d7d179263
Author: Bob Peterson <[email protected]> Date: Tue Mar 18 15:44:24 2008 -0500
Fix gfs2_edit print options (-p) to work properly for gfs-1 rgs and rindex. Also fixed rgflags option for gfs1.
commit d4b869fcf12cdae55f9558d69dc254aa675b09e8
Author: Bob Peterson <[email protected]> Date: Tue Mar 11 18:18:43 2008 -0500
Fix savemeta so it saves gfs-1 rg information properly Also add savergs option to facilitate rg-only repairs.
-----------------------------------------------------------------------
Summary of changes:
gfs2/edit/gfs2hex.c | 28 ++-- gfs2/edit/hexedit.c | 461 ++++++++++++++++++++++++++++++++------------------ gfs2/edit/hexedit.h | 34 ++++- gfs2/edit/savemeta.c | 109 ++++++++----- gfs2/man/gfs2_edit.8 | 51 ++++++- 5 files changed, 459 insertions(+), 224 deletions(-)
gfs2/edit/gfs2hex.c +13 -15
@@ -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 ];
@@ -70,9 +69,9 @@ void print_gfs2(const char *fmt, ...)va_start (args, fmt);vsprintf (string, fmt, args);if (termlines) -printw (string); +printw ("%s" , string);else -printf (string); +printf ("%s" , string);va_end (args); }
@@ -127,9 +126,9 @@ void print_it(const char *label, const char *fmt, const char *fmt2, ...)vsprintf (tmp_string, fmt, args);if (termlines) -printw (tmp_string); +printw ("%s" , tmp_string);else -printf (tmp_string); +printf ("%s" , tmp_string);check_highlight (FALSE);if (fmt2) {
@@ -159,10 +158,10 @@ void print_it(const char *label, const char *fmt, const char *fmt2, ...) fmtstring="(decimal)" ;if (termlines) {move (line,50 ); -printw (fmtstring); +printw ("%s" , fmtstring); }else -printf (fmtstring); +printf ("%s" , fmtstring); }if (termlines) {refresh ();
@@ -226,9 +225,8 @@ 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 ), y =0 ; - x < bufsize; - x +=sizeof (uint64_t ), y++) { +for (x =sizeof (struct gfs2_dinode ); x < sbd.bsize; + x +=sizeof (uint64_t )) { p =be64_to_cpu (*(uint64_t *)(buf + x));if (p) { indirect->ii[indirect_blocks].block = p;
@@ -244,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);
@@ -276,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,
@@ -318,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) {
@@ -353,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) {
@@ -400,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 +297 -164
768 lines not on this page · raw message
gfs2/edit/hexedit.h +33 -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);
@@ -101,6 +100,7 @@ EXTERN WINDOW *wind; EXTERN int gfs1 INIT(0); EXTERN int editing INIT(0); EXTERN uint64_t temp_blk; +EXTERN uint64_t starting_blk;struct gfs_jindex {uint64_t ji_addr;/* starting block of the journal */
@@ -135,6 +135,38 @@ struct gfs_log_header {char lh_reserved[64 ]; }; +struct gfs_rindex { +uint64_t ri_addr;/* block # of 1st block (header) in rgrp */ +uint32_t ri_length;/* # fs blocks containing rgrp header & bitmap */ +uint32_t ri_pad; + +uint64_t ri_data1;/* block # of first data/meta block in rgrp */ +uint32_t ri_data;/* number (qty) of data/meta blocks in rgrp */ + +uint32_t ri_bitbytes;/* total # bytes used by block alloc bitmap */ + +char ri_reserved[64 ]; +}; + +struct gfs_rgrp { +struct gfs2_meta_header rg_header; + +uint32_t rg_flags;/* ?? */ + +uint32_t rg_free;/* Number (qty) of free data blocks */ + +/* Dinodes are USEDMETA, but are handled separately from other METAs */ +uint32_t rg_useddi;/* Number (qty) of dinodes (used or free) */ +uint32_t rg_freedi;/* Number (qty) of unused (free) dinodes */ +struct gfs2_inum rg_freedi_list;/* 1st block in chain of free dinodes */ + +/* These META statistics do not include dinodes (used or free) */ +uint32_t rg_usedmeta;/* Number (qty) of used metadata blocks */ +uint32_t rg_freemeta;/* Number (qty) of unused metadata blocks */ + +char rg_reserved[64 ]; +}; + EXTERN int block_is_jindex(void); EXTERN int block_is_rindex(void); EXTERN int block_is_inum_file(void);
gfs2/edit/savemeta.c +67 -42
253 lines not on this page · raw message
gfs2/man/gfs2_edit.8 +49 -2
88 lines not on this page · raw message
hooks/post-receive
--
Cluster Project