}
g_print(": refs=%d ty=%d inode=%"PRIu64" locs=%x log@(%d,%d) cloud@(%d,%d,%d)\n",
log->refcount,
- log->type, log->inum, log->location_flags,
+ log->type, log->inum,
+ log->location_flags | (log->data != NULL ? 0x100 : 0),
log->log_seq, log->log_offset, log->location.directory,
log->location.sequence, log->location.offset);
}
void bluesky_debug_dump(BlueSkyFS *fs)
{
g_print("*** DEBUG DUMP FOR FILESYSTEM %s ***\n", fs->name);
- g_print("Cached blocks: %d\tDirty blocks: %d\n",
- g_atomic_int_get(&fs->cache_total),
- g_atomic_int_get(&fs->cache_dirty));
+ g_print("Dirty blocks: %d\n", g_atomic_int_get(&fs->cache_dirty));
g_print("Cached inodes: %u\tNext inode: %"PRIu64"\n",
g_hash_table_size(fs->inodes), fs->next_inum);
+ g_print("Cloudlog cache: %d dirty, %d writeback, %d journal, %d cloud\n",
+ g_atomic_int_get(&fs->cache_log_dirty),
+ g_atomic_int_get(&fs->cache_log_writeback),
+ g_atomic_int_get(&fs->cache_log_journal),
+ g_atomic_int_get(&fs->cache_log_cloud));
GList *item;
g_print("Unsynced inode list:");