Revision: 14462
Author: adrian.chadd
Date: Wed Mar 17 20:51:27 2010
Log: Add debugging to identify which rebuild method is being utilised.


http://code.google.com/p/lusca-cache/source/detail?r=14462

Modified:
 /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_dir.c
 /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_log.c

=======================================
--- /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_dir.c Mon Sep 14 22:42:21 2009 +++ /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_dir.c Wed Mar 17 20:51:27 2010
@@ -112,6 +112,7 @@
        int i, j;

        getCurrentTime();
+ debug(47, 1) ("ufs_rebuild: %s: beginning rebuild from directory\n", sd->path);
        for (i = 0; i < store_ufs_l1(sd); i++) {
                for (j = 0; j < store_ufs_l2(sd); j++) {
                        (void) store_ufs_createDir(sd, i, j, dir);
=======================================
--- /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_log.c Mon Sep 14 22:42:21 2009 +++ /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_log.c Wed Mar 17 20:51:27 2010
@@ -120,6 +120,7 @@
        int version = -1;               /* -1 = not set, 0 = old, 1 = new */
        char *rbuf;

+       debug(47, 1) ("ufs_rebuild: %s: rebuild from swaplog\n", ufs->path);
        fp = fopen(ufs->swaplog_path, "r");
        if (! fp) {
                perror("fopen");

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to