]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Supply FILE * parameter of stderr to libxfs_report.
authorMadan Valluri <mvalluri@sgi.com>
Tue, 6 Jun 2006 03:30:36 +0000 (03:30 +0000)
committerMadan Valluri <mvalluri@sgi.com>
Tue, 6 Jun 2006 03:30:36 +0000 (03:30 +0000)
Supply FILE * parameter of stderr to libxfs_report.
Call libxfs_report after each phase to report cache information.

repair/xfs_repair.c

index 38a6c440f607ddcbc59b98abfcdc881c8dc587fc..92c90ca7ff62b427141a6bc96f990abb70a8a4c2 100644 (file)
@@ -506,9 +506,15 @@ main(int argc, char **argv)
 
        phase2(mp);
 
+       if (verbose)
+               libxfs_report(stderr);
        phase3(mp);
+       if (verbose)
+               libxfs_report(stderr);
 
        phase4(mp);
+       if (verbose)
+               libxfs_report(stderr);
 
        /* XXX: nathans - something in phase4 ain't playing by */
        /* the buffer cache rules.. why doesn't IRIX hit this? */
@@ -521,6 +527,8 @@ main(int argc, char **argv)
 
        if (!bad_ino_btree)  {
                phase6(mp);
+               if (verbose)
+                       libxfs_report(stderr);
 
                phase7(mp);
        } else  {
@@ -583,7 +591,7 @@ _("Warning:  project quota information would be cleared.\n"
        }
 
        if (verbose)
-               libxfs_report();
+               libxfs_report(stderr);
 
        if (no_modify)  {
                do_log(