cluster/gfs2/fsck Makefile eattr.c fs_recovery ...
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-06-12 20:41:43
Modified files:
gfs2/fsck : Makefile eattr.c fs_recovery.c fsck.h
initialize.c link.c lost_n_found.c main.c metawalk.c pass1.c pass1b.c pass1c.c pass2.c pass3.c pass4.c pass5.c util.c
Removed files:
gfs2/fsck : bitmap.c bitmap.h block_list.c block_list.h
fs_bits.c log.c log.h super.c super.h
Log message:
Made all block numbers show in decimal and hex. Minor bug fixes. Moved some functions to libgfs2.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/eattr.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/fs_recovery.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/fsck.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/initialize.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/link.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/lost_n_found.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/main.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/metawalk.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/pass1.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/pass1b.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/pass1c.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/pass2.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/pass3.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/pass4.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/pass5.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/util.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/bitmap.c.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/bitmap.h.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/block_list.c.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/block_list.h.diff?cvsroot=cluster&r1=1.1&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/fs_bits.c.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/log.c.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/log.h.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/super.c.diff?cvsroot=cluster&r1=1.2&r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/fsck/super.h.diff?cvsroot=cluster&r1=1.2&r2=NONE
gfs2/fsck/Makefile +2 -3
@@ -20,9 +20,8 @@ .PHONY: all clean sources = main.c initialize.c pass1.c pass1b.c pass1c.c pass2.c pass3.c \ - pass4.c pass5.c super.c util.c fs_recovery.c \ - log.c lost_n_found.c link.c eattr.c hash.c inode_hash.c \ - metawalk.c + pass4.c pass5.c util.c fs_recovery.c \ + lost_n_found.c link.c eattr.c hash.c inode_hash.c metawalk.c CFLAGS+=-D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM -DGFS_RELEASE_NAME=\"${RELEASE}\" -Wall -g
gfs2/fsck/eattr.c +1 -1
@@ -15,7 +15,7 @@#include <linux_endian.h> #include "libgfs2.h" -#include "log.h" +#include "fsck.h" static int clear_blk_nodup (struct gfs2_sbd *sbp,uint64_t block) {
gfs2/fsck/fs_recovery.c +2 -2
@@ -21,7 +21,6 @@#include "libgfs2.h" #include "util.h" #include "fs_recovery.h" -#include "log.h" #define RANDOM (values) ((values) * (random() / (RAND_MAX + 1.0)))
@@ -64,7 +63,8 @@block_map (ip, x, &new, &dblock, &extlen); bh =bread (sdp, dblock);if (!bh) { -log_err ("Unable to read journal block at %" PRIu64"\n" , dblock); +log_err ("Unable to read journal block at %" PRIu64 +" (0x%" PRIx64")\n" , dblock, dblock);return -1 ; }
gfs2/fsck/fsck.h +1 -7
@@ -19,12 +19,6 @@#define FSCK_HASH_SIZE (1 << FSCK_HASH_SHIFT)#define FSCK_HASH_MASK (FSCK_HASH_SIZE - 1) -struct options { -char *device; -int yes:1 ; -int no:1 ; -}; -struct inode_info {osi_list_t list;
@@ -59,7 +53,7 @@* of pass1 and put somewhere else... */ int add_to_dir_list (struct gfs2_sbd *sbp,uint64_t block); -extern struct options opts; +extern struct gfs2_options opts;extern struct gfs2_inode *lf_dip;/* Lost and found directory inode */ extern osi_list_t dir_hash[FSCK_HASH_SIZE ];extern osi_list_t inode_hash[FSCK_HASH_SIZE ];
gfs2/fsck/initialize.c +6 -8
@@ -25,9 +25,7 @@#include "libgfs2.h" #include "fsck.h" #include "util.h" -#include "super.h" #include "fs_recovery.h" -#include "log.h" #include "linux_endian.h" #define CLEAR_POINTER (x) \
@@ -36,8 +34,6 @@ x =NULL ; \ } -extern struct options opts; -/** * init_journals *
@@ -167,15 +163,16 @@if (do_lseek (sdp->device_fd, (last_fs_block * sdp->sd_sb.sb_bsize))){log_crit ("Can't seek to last block in file system: %" - PRIu64"\n" , last_fs_block); + PRIu64" (0x%" PRIx64")\n" , last_fs_block, last_fs_block); goto fail; }memset (buf,0 , sdp->sd_sb.sb_bsize); error =read (sdp->device_fd, buf, sdp->sd_sb.sb_bsize);if (error != sdp->sd_sb.sb_bsize){ -log_crit ("Can't read last block in file system (%u), " -"last_fs_block: %" PRIu64"\n" , error, last_fs_block); +log_crit ("Can't read last block in file system (error %u), " +"last_fs_block: %" PRIu64" (0x%" PRIx64")\n" , error, + last_fs_block, last_fs_block); goto fail; }
@@ -198,6 +195,7 @@char *buf;uint64_t inumbuf;struct gfs2_statfs_change sc; +int rgcount;sync ();
@@ -278,7 +276,7 @@return -1 ; } -if (ri_update (sdp)){ +if (ri_update (sdp, &rgcount)){log_err ("Unable to fill in resource group information.\n" ); goto fail; }
gfs2/fsck/link.c +5 -6
@@ -21,12 +21,11 @@#include "fsck.h" #include "inode_hash.h" #include "link.h" -#include "log.h" int set_link_count (struct gfs2_sbd *sbp,uint64_t inode_no,uint32_t count) {struct inode_info *ii =NULL ; -log_debug ("Setting link count to %u for %" PRIu64" (0x%" PRIx64")\n" , +log_debug ("Setting link count to %u for %" PRIu64" (0x%" PRIx64")\n" , count, inode_no, inode_no);/* If the list has entries, look for one that matches * inode_no */
@@ -34,7 +33,7 @@if (ii) {if (ii->link_count) {log_err ("Link count already set for inode #%" PRIu64" (0x%" - PRIx64")!\n" , inode_no, inode_no); + PRIx64")!\n" , inode_no, inode_no); stack;return -1 ; }
@@ -67,11 +66,11 @@if (ii) { ii->counted_links++;log_debug ("Incremented counted links to %u for %" PRIu64" (0x%" - PRIx64")\n" , ii->counted_links, inode_no, inode_no); + PRIx64")\n" , ii->counted_links, inode_no, inode_no);return 0 ; }log_debug ("No match found when incrementing link for %" PRIu64 -" (0x%" PRIx64")!\n" , inode_no, inode_no); +" (0x%" PRIx64")!\n" , inode_no, inode_no);/* If no match was found, add a new entry and set its * counted links to 1 */ if (!(ii = (struct inode_info *)malloc (sizeof (*ii)))) {
@@ -104,7 +103,7 @@return 0 ; }log_debug ("No match found when decrementing link for %" PRIu64 -" (0x%" PRIx64")!\n" , inode_no, inode_no); +" (0x%" PRIx64")!\n" , inode_no, inode_no);return -1 ; }
gfs2/fsck/lost_n_found.c +10 -9
@@ -20,10 +20,10 @@#include <unistd.h> #include <dirent.h> +#include "fsck.h" #include "libgfs2.h" #include "lost_n_found.h" #include "link.h" -#include "log.h" /* add_inode_to_lf - Add dir entry to lost+found for the inode * @ip: inode to add to lost + found
@@ -45,13 +45,13 @@log_info ("Locating/Creating lost and found directory\n" ); - lf_dip =createi (ip->i_sbd->md.rooti,"l+f" ,S_IFDIR |0700 ,0 ); + lf_dip =createi (ip->i_sbd->md.rooti,"lost+found" ,S_IFDIR |0700 ,0 );if (gfs2_block_check (bl, lf_dip->i_di.di_num.no_addr, &q)) { stack;return -1 ; }if (q.block_type != gfs2_inode_dir) { -/* This is a new l+f directory, so set its +/* This is a new lost+found directory, so set its * block type and increment link counts for * the directories */ /* FIXME: i'd feel better about this if
@@ -67,21 +67,21 @@ } }if (ip->i_di.di_num.no_addr == lf_dip->i_di.di_num.no_addr) { -log_err ("Trying to add l+f to itself...skipping" ); +log_err ("Trying to add lost+found to itself...skipping" );return 0 ; }switch (ip->i_di.di_mode &S_IFMT ){case S_IFDIR : -log_info ("Adding .. entry pointing to l+f for %" PRIu64"\n" , +log_info ("Adding .. entry pointing to lost+found for %" PRIu64"\n" , ip->i_di.di_num.no_addr);sprintf (tmp_name,".." ); filename_len =strlen (tmp_name);/* no trailing NULL */ -if (!(filename =malloc (sizeof (char ) * filename_len))) { +if (!(filename =malloc ((sizeof (char ) * filename_len) +1 ))) {log_err ("Unable to allocate name\n" ); stack;return -1 ; } -if (!memset (filename,0 ,sizeof (char ) * filename_len)) { +if (!memset (filename,0 , (sizeof (char ) * filename_len) +1 )) {log_err ("Unable to zero name\n" ); stack;return -1 ;
@@ -90,7 +90,7 @@if (gfs2_dirent_del (ip,NULL , filename, filename_len))log_warn ("add_inode_to_lf: " -"Unable to remove \"..\" directory entry.\n" ); +"Unable to remove \"..\" directory entry.\n" );dir_add (ip, filename, filename_len, &(lf_dip->i_di.di_num),DT_DIR );free (filename);
@@ -145,6 +145,7 @@increment_link (ip->i_sbd, lf_dip->i_di.di_num.no_addr);free (filename); -log_notice ("Added inode #%" PRIu64" to l+f dir\n" , ip->i_di.di_num.no_addr); +log_notice ("Added inode #%" PRIu64" to lost+found dir\n" , + ip->i_di.di_num.no_addr);return 0 ; }
gfs2/fsck/main.c +2 -3
@@ -21,10 +21,9 @@#include "copyright.cf" #include "libgfs2.h" #include "fsck.h" -#include "log.h" #include "osi_list.h" -struct options opts = {0 }; +struct gfs2_options opts = {0 };struct gfs2_inode *lf_dip;/* Lost and found directory inode */ osi_list_t dir_hash[FSCK_HASH_SIZE ];osi_list_t inode_hash[FSCK_HASH_SIZE ];
@@ -81,7 +80,7 @@printf ("%s\n" ,REDHAT_COPYRIGHT ); } -int read_cmdline (int argc,char **argv,struct options *opts) +int read_cmdline (int argc,char **argv,struct gfs2_options *opts) {char c;
gfs2/fsck/metawalk.c +22 -16
@@ -21,7 +21,6 @@#include "libgfs2.h" #include "fsck.h" #include "util.h" -#include "log.h" #include "metawalk.h" #include "hash.h"
@@ -45,7 +44,8 @@else if (type ==DIR_EXHASH ) { dent = (struct gfs2_dirent *)(bh->b_data +sizeof (struct gfs2_leaf )); leaf = (struct gfs2_leaf *)bh->b_data; -log_debug ("Checking leaf %" PRIu64"\n" , bh->b_blocknr); +log_debug ("Checking leaf %" PRIu64" (0x%" PRIx64")\n" , + bh->b_blocknr, bh->b_blocknr); }else {log_err ("Invalid directory type %d specified\n" , type);
@@ -68,13 +68,14 @@ }else {/* FIXME: Do something about this */ log_err ("Directory entry with inode number of zero in leaf %" - PRIu64" of directory %" PRIu64"!\n" , bh->b_blocknr, - ip->i_di.di_num.no_addr); + PRIu64"(0x%" PRIx64") of directory %" PRIu64 +" (0x%" PRIx64")!\n" , bh->b_blocknr, bh->b_blocknr, + ip->i_di.di_num.no_addr, ip->i_di.di_num.no_addr);return 1 ; } }else { error = pass->check_dentry (ip, dent, prev, bh, filename, update, - count, pass->private); + count, pass->private);if (error <0 ) { stack;return -1 ;
@@ -123,10 +124,11 @@continue ; }else {if (ref_count != exp_count){ -log_err ("Dir #%" PRIu64" has an incorrect number " -"of pointers to leaf #%" PRIu64"\n" -"\tFound: %u, Expected: %u\n" , - ip->i_di.di_num.no_addr, old_leaf, ref_count, exp_count); +log_err ("Dir #%" PRIu64" (0x%" PRIx64") has an incorrect " +"number of pointers to leaf #%" PRIu64" (0x%" PRIx64 +")\n\tFound: %u, Expected: %u\n" , + ip->i_di.di_num.no_addr, ip->i_di.di_num.no_addr, + old_leaf, old_leaf, ref_count, exp_count);return 1 ; } ref_count =1 ;
@@ -283,7 +285,8 @@ {struct gfs2_buffer_head *bh =NULL ;int error =0 ; -log_debug ("Checking EA leaf block #%" PRIu64".\n" , block); +log_debug ("Checking EA leaf block #%" PRIu64" (0x%" PRIx64").\n" , + block, block);if (pass->check_eattr_leaf) { error = pass->check_eattr_leaf (ip, block, parent, &bh, pass->private);
@@ -315,7 +318,8 @@struct gfs2_buffer_head *indirect_buf =NULL ;struct gfs2_sbd *sdp = ip->i_sbd; -log_debug ("Checking EA indirect block #%" PRIu64".\n" , indirect); +log_debug ("Checking EA indirect block #%" PRIu64" (0x%" PRIx64").\n" , + indirect, indirect);if (!pass->check_eattr_indir || !pass->check_eattr_indir(ip, indirect, ip->i_di.di_num.no_addr,
@@ -352,8 +356,9 @@return 0 ; } -log_debug ("Extended attributes exist for inode #%" PRIu64".\n" , - ip->i_di.di_num.no_formal_ino); +log_debug ("Extended attributes exist for inode #%" PRIu64" (0x%" PRIx64 +").\n" , ip->i_di.di_num.no_formal_ino, + ip->i_di.di_num.no_formal_ino);if (ip->i_di.di_flags &GFS2_DIF_EA_INDIRECT ){if ((error =check_indirect_eattr (ip, ip->i_di.di_eattr, pass)))
@@ -416,7 +421,8 @@ goto fail; }if (err >0 ) { -log_debug ("Skipping block %" PRIu64"\n" , block); +log_debug ("Skipping block %" PRIu64" (0x%" PRIx64")\n" , + block, block);continue ; } subblock =be64_to_cpu (*subptr);
@@ -563,8 +569,8 @@struct gfs2_block_query q;int error; -log_debug ("Removing dentry %" PRIu64" from directory %" PRIu64"\n" , - dentryblock, dir); +log_debug ("Removing dentry %" PRIu64" (0x%" PRIx64") from directory %" + PRIu64" (0x%" PRIx64")\n" , dentryblock, dentryblock, dir, dir);if (gfs2_check_range (sbp, dir)) {log_err ("Parent directory out of range\n" );return 1 ;
gfs2/fsck/pass1.c +30 -30
218 lines not on this page · raw message
gfs2/fsck/pass1b.c +60 -48
192 lines not on this page · raw message
gfs2/fsck/pass1c.c +6 -4
@@ -19,7 +19,6 @@#include "libgfs2.h" #include "fsck.h" #include "util.h" -#include "log.h" #include "metawalk.h" static int remove_eattr_entry(struct gfs2_sbd *sdp,
@@ -27,7 +26,8 @@ struct gfs2_ea_header *curr, struct gfs2_ea_header *prev) { - log_warn("Removing EA located in block #%"PRIu64".\n", leaf_bh->b_blocknr); + log_warn("Removing EA located in block #%"PRIu64" (0x%" PRIx64 ").\n", + leaf_bh->b_blocknr, leaf_bh->b_blocknr);if (!prev) curr->ea_type =GFS2_EATYPE_UNUSED ;else
@@ -199,11 +199,13 @@log_info ("Looking for inodes containing ea blocks...\n" );while (!gfs2_find_next_block_type (bl, gfs2_eattr_block, &block_no)) { -log_info ("EA in inode %" PRIu64"\n" , block_no); +log_info ("EA in inode %" PRIu64" (0x%" PRIx64")\n" , block_no, + block_no); bh =bread (sbp, block_no); ip =inode_get (sbp, bh); -log_debug ("Found eattr at %" PRIu64"\n" , ip->i_di.di_eattr); +log_debug ("Found eattr at %" PRIu64" (0x%" PRIx64")\n" , + ip->i_di.di_eattr, ip->i_di.di_eattr);/* FIXME: Handle walking the eattr here */ error =check_inode_eattr (ip, &pass1c_fxns);if (error <0 ) {
gfs2/fsck/pass2.c +44 -33
181 lines not on this page · raw message
gfs2/fsck/pass3.c +41 -43
207 lines not on this page · raw message
gfs2/fsck/pass4.c +16 -17
@@ -18,7 +18,6 @@#include "libgfs2.h" #include "fsck.h" #include "lost_n_found.h" -#include "log.h" #include "inode_hash.h" /* Updates the link count of an inode to what the fsck has seen for
@@ -26,13 +25,13 @@int fix_inode_count (struct gfs2_sbd *sbp,struct inode_info *ii,struct gfs2_inode *ip) { -log_info ("Fixing inode count for %" PRIu64" (0x%" PRIx64") \n" , +log_info ("Fixing inode count for %" PRIu64" (0x%" PRIx64") \n" , ip->i_di.di_num.no_addr, ip->i_di.di_num.no_addr);if (ip->i_di.di_nlink == ii->counted_links)return 0 ; ip->i_di.di_nlink = ii->counted_links; -log_debug ("Changing inode %" PRIu64" (0x%" PRIx64") to have %u links\n" , +log_debug ("Changing inode %" PRIu64" (0x%" PRIx64") to have %u links\n" , ip->i_di.di_num.no_addr, ip->i_di.di_num.no_addr, ii->counted_links);return 0 ;
@@ -54,10 +53,10 @@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_info ("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" , +log_err ("Found unlinked inode at %" PRIu64" (0x%" PRIx64")\n" , ii->inode, ii->inode);if (gfs2_block_check (bl, ii->inode, &q)) { stack;
@@ -98,7 +97,7 @@ } } -if (query (&opts,"Add unlinked inode to l+f? (y/n)" )) { +if (query (&opts,"Add unlinked inode to lost+found? (y/n)" )) { f = updated;if (add_inode_to_lf (ip)) { stack;
@@ -114,31 +113,31 @@inode_put (ip, f); }/* if(ii->counted_links == 0) */ else if (ii->link_count != ii->counted_links) { -log_err ("Link count inconsistent for inode %" PRIu64 -" (0x%" PRIx64") - %u %u\n" , ii->inode, +log_err ("Link count inconsistent for inode %" PRIu64 +" (0x%" PRIx64") has %u but fsck found %u.\n" , ii->inode, ii->inode, ii->link_count, ii->counted_links);/* Read in the inode, adjust the link count, * and write it back out */ if (query (&opts,"Update link count for inode %" - PRIu64" (0x%" PRIx64") ? (y/n) " , ii->inode, ii->inode)) { + PRIu64" (0x%" PRIx64") ? (y/n) " , ii->inode, ii->inode)) { ip =gfs2_load_inode (sbp, ii->inode);/* bread, inode_get */ fix_inode_count (sbp, ii, ip);inode_put (ip, updated);/* out, brelse, free */ log_warn ("Link count updated for inode %" - PRIu64" (0x%" PRIx64") \n" , ii->inode, ii->inode); + PRIu64" (0x%" PRIx64") \n" , ii->inode, ii->inode); }else { -log_err ("Link count for inode %" PRIu64" (0x%" PRIx64 -") still incorrect\n" , ii->inode, ii->inode); +log_err ("Link count for inode %" PRIu64" (0x%" PRIx64 +") still incorrect\n" , ii->inode, ii->inode); } } -log_debug ("block %" PRIu64" (0x%" PRIx64") has link count %d\n" , +log_debug ("block %" PRIu64" (0x%" PRIx64") has link count %d\n" , ii->inode, ii->inode, ii->link_count); }/* osi_list_foreach(tmp, list) */ if (lf_addition) {if (!(ii =inode_hash_search (inode_hash, lf_dip->i_di.di_num.no_addr))) { -log_crit ("Unable to find l+f inode in inode_hash!!\n" ); +log_crit ("Unable to find lost+found inode in inode_hash!!\n" );return -1 ; }else {fix_inode_count (sbp, ii, lf_dip);
@@ -162,7 +161,7 @@uint32_t i;osi_list_t *list;if (lf_dip) -log_debug ("At beginning of pass4, l+f entries is %u\n" , +log_debug ("At beginning of pass4, lost+found entries is %u\n" , lf_dip->i_di.di_entries);for (i =0 ; i <FSCK_HASH_SIZE ; i++) { list = &inode_hash[i];
@@ -173,7 +172,7 @@ }if (lf_dip) -log_debug ("At end of pass4, l+f entries is %u\n" , +log_debug ("At end of pass4, lost+found entries is %u\n" , lf_dip->i_di.di_entries);return 0 ; }
gfs2/fsck/pass5.c +3 -3
@@ -18,7 +18,6 @@#include "libgfs2.h" #include "fsck.h" -#include "log.h" #include "fs_bits.h" #include "util.h"
@@ -78,6 +77,7 @@while (byte < end) { rg_status = ((*byte >> bit) &GFS2_BIT_MASK ); block = rg_data + *rg_block; +warm_fuzzy_stuff (block);gfs2_block_check (bl, block, &q); block_status =convert_mark (q.block_type, count);
@@ -139,7 +139,7 @@ update =1 ; }if (rgp->rg.rg_dinodes != count[1 ]) { -log_err ("inode count inconsistent: is %u should be %u\n" , +log_err ("Inode count inconsistent: is %u should be %u\n" , rgp->rg.rg_dinodes, count[1 ]); rgp->rg.rg_dinodes = count[1 ]; update =1 ;
@@ -180,7 +180,7 @@for (tmp = sbp->rglist.next; tmp != &sbp->rglist; tmp = tmp->next){enum update_flags f; -log_info ("Verifying Resource Group %" PRIu64"\n" , rg_count); +log_info ("Verifying Resource Group #%" PRIu64"\n" , rg_count);memset (count,0 ,sizeof (count)); rgp = osi_list_entry(tmp, struct rgrp_list, list);
gfs2/fsck/util.c +0 -2
@@ -21,9 +21,7 @@#include "libgfs2.h" #include "fs_bits.h" -#include "util.h" -#include "log.h" /** * compute_height