svn commit: r353003 - releng/12.1/cddl/contrib/opensolaris/lib/libzfs/common

Andriy Gapon avg at FreeBSD.org
Wed Oct 2 13:25:29 UTC 2019


Author: avg
Date: Wed Oct  2 13:25:28 2019
New Revision: 353003
URL: https://svnweb.freebsd.org/changeset/base/353003

Log:
  MFS12 r352721: print summary line for space estimate of zfs send from bookmark
  
  This should have been merged as a part of r352901 but I missed it.
  
  Approved by:	re (gjb)

Modified:
  releng/12.1/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
Directory Properties:
  releng/12.1/   (props changed)

Modified: releng/12.1/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
==============================================================================
--- releng/12.1/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c	Wed Oct  2 12:46:28 2019	(r353002)
+++ releng/12.1/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c	Wed Oct  2 13:25:28 2019	(r353003)
@@ -2054,6 +2054,15 @@ zfs_send_one(zfs_handle_t *zhp, const char *from, int 
 		if (err == 0) {
 			send_print_verbose(fout, zhp->zfs_name, from, size,
 			    flags.parsable);
+			if (flags.parsable) {
+				(void) fprintf(fout, "size\t%llu\n",
+				    (longlong_t)size);
+			} else {
+				char buf[16];
+				zfs_nicenum(size, buf, sizeof (buf));
+				(void) fprintf(fout, dgettext(TEXT_DOMAIN,
+				    "total estimated size is %s\n"), buf);
+			}
 		} else {
 			(void) fprintf(stderr, "Cannot estimate send size: "
 			    "%s\n", strerror(errno));


More information about the svn-src-releng mailing list