Skip to content

Commit

Permalink
Show the mapped blocks count when debug is used
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Rouleau <[email protected]>
  • Loading branch information
pfrouleau committed Jul 12, 2014
1 parent 3fb1dbb commit 834105b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/partclone.c
Original file line number Diff line number Diff line change
Expand Up @@ -1603,6 +1603,7 @@ void print_file_system_info(file_system_info fs_info, cmd_opt opt) {
unsigned int block_s = fs_info.block_size;
unsigned long long total = fs_info.totalblock;
unsigned long long used = fs_info.usedblocks;
unsigned long long mapped = fs_info.used_bitmap;
int debug = opt.debug;
char size_str[11];

Expand All @@ -1617,6 +1618,9 @@ void print_file_system_info(file_system_info fs_info, cmd_opt opt) {
print_readable_size_str(used*block_s, size_str);
log_mesg(0, 0, 1, debug, _("Space in use: %s = %llu Blocks\n"), size_str, used);

print_readable_size_str(mapped*block_s, size_str);
log_mesg(1, 0, 1, debug, _("Mapped space: %s = %llu Blocks\n"), size_str, mapped);

print_readable_size_str((total-used)*block_s, size_str);
log_mesg(0, 0, 1, debug, _("Free Space: %s = %llu Blocks\n"), size_str, (total-used));

Expand Down

0 comments on commit 834105b

Please sign in to comment.