cluster/gfs2/fsck fs_recovery.c initialize.c m ...
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-06-15 18:48:45
Modified files:
gfs2/fsck : fs_recovery.c initialize.c main.c pass2.c
pass3.c pass4.c util.c
Log message:
Fixed a bug where changes to the root inode are not written to disk. Also, added logging changes for bz 156009.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/fs_recovery.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/initialize.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/main.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/pass2.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/pass3.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/pass4.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/util.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
gfs2/fsck/fs_recovery.c +2 -2
@@ -97,7 +97,7 @@int reconstruct_journals (struct gfs2_sbd *sdp){int i; -log_warn ("Clearing journals (this may take a while)\n" ); +log_notice ("Clearing journals (this may take a while)" );for (i=0 ; i < sdp->md.journals; i++) {/* Journal replay seems to have slowed down quite a bit in * the gfs2_fsck */
@@ -106,6 +106,6 @@if (reconstruct_single_journal (sdp, i))return -1 ; } -log_notice ("Cleared journals\n" ); +log_notice ("\nJournals cleared.\n" );return 0 ; }
gfs2/fsck/initialize.c +1 -0
@@ -348,6 +348,7 @@log_warn ("Unable to unblock other mounters - manual intevention required\n" );log_warn ("Use 'gfs_tool sb <device> proto' to fix\n" ); } +log_info ("Syncing the device.\n" );fsync (sbp->device_fd); }empty_super_block (sbp);
gfs2/fsck/main.c +1 -0
@@ -198,6 +198,7 @@inode_put (lf_dip, updated);/* print_map(sbp->bl, sbp->last_fs_block); */ +log_notice ("Writing changes to disk\n" );bsync (sbp);destroy (sbp);log_notice ("gfs2_fsck complete \n" );
gfs2/fsck/pass2.c +43 -45
163 lines not on this page · raw message
gfs2/fsck/pass3.c +3 -2
@@ -206,6 +206,7 @@* until we find one that's been checked already. If we don't * find a parent, put in lost+found. */ +log_info ("Checking directory linkage.\n" );for (i =0 ; i <FSCK_HASH_SIZE ; i++) { osi_list_foreach(tmp, &dir_hash[i]) { di = osi_list_entry(tmp, struct dir_info, list);
@@ -272,8 +273,8 @@break ; }else { -log_info ("Directory@block %" PRIu64" (0x%" - PRIx64") connected\n" , di->dinode, di->dinode); +log_debug ("Directory at block %" PRIu64" (0x%" + PRIx64") connected\n" , di->dinode, di->dinode); } di = tdi; }
gfs2/fsck/pass4.c +3 -2
@@ -53,8 +53,8 @@log_crit ("osi_list_foreach broken in scan_info_list!!\n" );exit (1 ); } -log_info ("Checking reference count on inode at block %" PRIu64 -" (0x%" PRIx64")\n" , ii->inode, ii->inode); +log_debug ("Checking reference count on inode at block %" PRIu64 +" (0x%" PRIx64")\n" , ii->inode, ii->inode);if (ii->counted_links ==0 ) {log_err ("Found unlinked inode at %" PRIu64" (0x%" PRIx64")\n" , ii->inode, ii->inode);
@@ -163,6 +163,7 @@if (lf_dip)log_debug ("At beginning of pass4, lost+found entries is %u\n" , lf_dip->i_di.di_entries); +log_info ("Checking inode reference counts.\n" );for (i =0 ; i <FSCK_HASH_SIZE ; i++) { list = &inode_hash[i];if (scan_inode_list (sbp, list)) {
gfs2/fsck/util.c +2 -3
@@ -54,7 +54,7 @@return height; } -/* Put out a warm, fuzzy message every second so the customer */ +/* Put out a warm, fuzzy message every second so the user */ /* doesn't think we hung. (This may take a long time). */ void warm_fuzzy_stuff (uint64_t block) {
@@ -69,8 +69,7 @@ seconds = tv.tv_sec; percent = (block *100 ) / last_fs_block; -printf ("\r%" PRIu64" percent complete.\r" , percent); -fflush (stdout); +log_notice ("\r%" PRIu64" percent complete.\r" , percent); } }