Skip to content

Commit

Permalink
show used blocks in bitmap with -d2 option
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Tsai committed Aug 22, 2023
1 parent 2bdad7c commit b41a000
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/partclone.c
Original file line number Diff line number Diff line change
Expand Up @@ -1907,6 +1907,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 used_bitmap = fs_info.used_bitmap;
int debug = opt.debug;
char size_str[11];

Expand All @@ -1925,6 +1926,7 @@ void print_file_system_info(file_system_info fs_info, cmd_opt opt) {
log_mesg(0, 0, 1, debug, _("Free Space: %s = %llu Blocks\n"), size_str, (total-used));

log_mesg(0, 0, 1, debug, _("Block size: %i Byte\n"), block_s);
log_mesg(2, 0, 1, debug, _("Used Blocks in Bitmap: %llu Blocks\n"), used_bitmap);
}

/// print image info
Expand Down

0 comments on commit b41a000

Please sign in to comment.