]> git.tuebingen.mpg.de Git - osl.git/blobdiff - fsck.c
fsck: Add some more log messages.
[osl.git] / fsck.c
diff --git a/fsck.c b/fsck.c
index f4f1071149e783519f6f0fc6c7acfcf4dcdd0b30..c5fdf3545cc1e4d9d3159787984ba7ee6b7d5a42 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -512,6 +512,8 @@ static int check_for_invalid_objects(struct osl_table *t, uint32_t **lost_bytes)
        /* first count used bytes */
        FOR_EACH_MAPPED_COLUMN(i, t, cd) {
                loss[i] = t->columns[i].data_map.size;
+               DEBUG_LOG("column %i data map: %u bytes\n", i,
+                       t->columns[i].data_map.size);
                for (j = 0; j < t->num_rows; j++) {
                        struct osl_object obj;
                        ret = get_mapped_object(t, i, j, &obj);
@@ -885,8 +887,11 @@ static int fsck_init(struct osl_table_description *desc, struct osl_table **t)
                ret = map_table(*t, (MAP_TBL_FL_IGNORE_DIRTY));
        else
                ret = map_table(*t, 0);
-       if (ret >= 0)
+       if (ret >= 0) {
                (*t)->num_rows = table_num_rows(*t);
+               DEBUG_LOG("index header size: %d\n", (*t)->index_header_size);
+               DEBUG_LOG("row index size: %d\n", (*t)->row_index_size);
+       }
 out:
        return ret;
 }