+static void show_bfs_stats(BFiles bfs)
+{
+ int i = 0;
+ const char *directory = 0;
+ double used_bytes, max_bytes;
+ printf("Register:\n");
+ while (bfs_register_directory_stat(bfs, i, &directory,
+ &used_bytes, &max_bytes))
+ {
+ printf ("%s %10.0lf %10.0lf\n", directory, used_bytes, max_bytes);
+ i++;
+ }
+ i = 0;
+ printf("Shadow:\n");
+ while (bfs_shadow_directory_stat(bfs, i, &directory,
+ &used_bytes, &max_bytes))
+ {
+ printf ("%s %10.0lf %10.0lf\n", directory, used_bytes, max_bytes);
+ i++;
+ }
+}
+