summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2020-09-30 11:09:38 +0200
committerSimon Rettberg2020-09-30 11:09:38 +0200
commit47f311a922e2918dd94cd8bd13e9670b69652322 (patch)
treea6aa66240967cae3c8ae07054c9f57eaa6830cb2
parentFix two (crash) bugs (diff)
downloadntfsfree-47f311a922e2918dd94cd8bd13e9670b69652322.tar.gz
ntfsfree-47f311a922e2918dd94cd8bd13e9670b69652322.tar.xz
ntfsfree-47f311a922e2918dd94cd8bd13e9670b69652322.zip
Print minimum range size in --human-readable mode
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index a90fbaa..493aa9b 100644
--- a/main.c
+++ b/main.c
@@ -136,6 +136,11 @@ int main(int argc, char **argv)
if (options.human) {
ntfs_log_info("# Clustersize %u\n", (unsigned int)vol->cluster_size);
ntfs_log_info("# Output block size %u\n", (unsigned int)options.output_block_size);
+ if (options.min_size >= 1024 * 1024) {
+ ntfs_log_info("# Minimum range size: %lldMiB\n", (long long)options.min_size / (1024 * 1024));
+ } else {
+ ntfs_log_info("# Minimum range size: %lldKiB\n", (long long)options.min_size / 1024);
+ }
}
options.min_size /= vol->cluster_size;
if (options.pagefile) {