summaryrefslogtreecommitdiffstats
path: root/misc-utils
diff options
context:
space:
mode:
authorJindrich Novy2006-10-29 08:19:35 +0100
committerRuediger Meier2018-06-12 14:23:35 +0200
commita272f143e7daca35c3617ba02a9371dbe4b5a0ac (patch)
tree9a58516fba623838d3f6aeabcbd1823607d80f83 /misc-utils
parentmostly spec cleanup (diff)
downloadkernel-qcow2-util-linux-a272f143e7daca35c3617ba02a9371dbe4b5a0ac.tar.gz
kernel-qcow2-util-linux-a272f143e7daca35c3617ba02a9371dbe4b5a0ac.tar.xz
kernel-qcow2-util-linux-a272f143e7daca35c3617ba02a9371dbe4b5a0ac.zip
- update docs to describe highest verbosity -vv option (#210816)
- use dist Resolves: 210816
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/hardlink.16
-rw-r--r--misc-utils/hardlink.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/misc-utils/hardlink.1 b/misc-utils/hardlink.1
index 7ffc2b460..09fd7ac90 100644
--- a/misc-utils/hardlink.1
+++ b/misc-utils/hardlink.1
@@ -3,7 +3,7 @@
hardlink \- Consolidate duplicate files via hardlinks
.SH "SYNOPSIS"
.PP
-\fBhardlink\fP [\fB-c\fP] [\fB-n\fP] [\fB-v\fP] [\fB-h\fP] directory1 [ directory2 ... ]
+\fBhardlink\fP [\fB-c\fP] [\fB-n\fP] [\fB-v\fP] [\fB-vv\fP] [\fB-h\fP] directory1 [ directory2 ... ]
.SH "DESCRIPTION"
.PP
This manual page documents \fBhardlink\fP, a
@@ -27,7 +27,9 @@ Disregards permission, ownership and other differences.
.IP "\fB-n\fP" 10
Do not perform the consolidation; only print what would be changed.
.IP "\fB-v\fP" 10
-Enable verbose logging.
+Print summary after hardlinking.
+.IP "\fB-vv\fP" 10
+Print every hardlinked file and bytes saved. Also print summary after hardlinking.
.IP "\fB-h\fP" 10
Show help.
.SH "AUTHOR"
diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c
index 4625f1ea3..a07d90c16 100644
--- a/misc-utils/hardlink.c
+++ b/misc-utils/hardlink.c
@@ -100,7 +100,8 @@ void usage(char *prog)
fprintf (stderr, "Usage: %s [-cnvh] directories...\n", prog);
fprintf (stderr, " -c When finding candidates for linking, compare only file contents.\n");
fprintf (stderr, " -n Don't actually link anything, just report what would be done.\n");
- fprintf (stderr, " -v Operate in verbose mode.\n");
+ fprintf (stderr, " -v Print summary after hardlinking.\n");
+ fprintf (stderr, " -vv Print every hardlinked file and bytes saved + summary.\n");
fprintf (stderr, " -h Show help.\n");
exit(255);
}