summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorloli10K <[email protected]>2019-07-06 01:38:17 +0200
committerBrian Behlendorf <[email protected]>2019-07-05 16:38:17 -0700
commit3b5fe2c351b1ba74ac75199310ad79a7597aa747 (patch)
tree304efcf5331c6c788e2b1f2e27fc9aa9fc6eeeea /cmd
parent341166c8435f54936cdea366d096b1f5556292c1 (diff)
Fix zfs "redact" misc issues
* zfs redact error messages do not end with newline character * 30af21b0 inadvertently removed some ZFS_PROP comments * man/zfs: zfs redact <redaction_snapshot> is not optional Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #8988
Diffstat (limited to 'cmd')
-rw-r--r--cmd/zfs/zfs_main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c
index 456a6ca30..d9709ae62 100644
--- a/cmd/zfs/zfs_main.c
+++ b/cmd/zfs/zfs_main.c
@@ -3620,7 +3620,7 @@ zfs_do_redact(int argc, char **argv)
argv++;
argc--;
if (argc < 3) {
- (void) fprintf(stderr, gettext("too few arguments"));
+ (void) fprintf(stderr, gettext("too few arguments\n"));
usage(B_FALSE);
}
@@ -3643,34 +3643,34 @@ zfs_do_redact(int argc, char **argv)
break;
case ENOENT:
(void) fprintf(stderr,
- gettext("provided snapshot %s does not exist"), snap);
+ gettext("provided snapshot %s does not exist\n"), snap);
break;
case EEXIST:
(void) fprintf(stderr, gettext("specified redaction bookmark "
- "(%s) provided already exists"), bookname);
+ "(%s) provided already exists\n"), bookname);
break;
case ENAMETOOLONG:
(void) fprintf(stderr, gettext("provided bookmark name cannot "
- "be used, final name would be too long"));
+ "be used, final name would be too long\n"));
break;
case E2BIG:
(void) fprintf(stderr, gettext("too many redaction snapshots "
- "specified"));
+ "specified\n"));
break;
case EINVAL:
(void) fprintf(stderr, gettext("redaction snapshot must be "
- "descendent of snapshot being redacted"));
+ "descendent of snapshot being redacted\n"));
break;
case EALREADY:
(void) fprintf(stderr, gettext("attempted to redact redacted "
- "dataset or with respect to redacted dataset"));
+ "dataset or with respect to redacted dataset\n"));
break;
case ENOTSUP:
(void) fprintf(stderr, gettext("redaction bookmarks feature "
- "not enabled"));
+ "not enabled\n"));
break;
default:
- (void) fprintf(stderr, gettext("internal error: %s"),
+ (void) fprintf(stderr, gettext("internal error: %s\n"),
strerror(errno));
}