Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Oct 2015 11:41:28 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r288598 - stable/10/cddl/contrib/opensolaris/cmd/zdb
Message-ID:  <201510031141.t93BfSnF074199@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sat Oct  3 11:41:27 2015
New Revision: 288598
URL: https://svnweb.freebsd.org/changeset/base/288598

Log:
  MFC r287771: 5695 dmu_sync'ed holes do not retain birth time
  (userland portion that was not merged in r286677)
  
  Update zdb to also print ltime, type, and level information
  for these new style holes. Previously, only the logical birth
  time would be printed.

Modified:
  stable/10/cddl/contrib/opensolaris/cmd/zdb/zdb.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/cddl/contrib/opensolaris/cmd/zdb/zdb.c
==============================================================================
--- stable/10/cddl/contrib/opensolaris/cmd/zdb/zdb.c	Sat Oct  3 11:39:39 2015	(r288597)
+++ stable/10/cddl/contrib/opensolaris/cmd/zdb/zdb.c	Sat Oct  3 11:41:27 2015	(r288598)
@@ -1205,7 +1205,9 @@ snprintf_blkptr_compact(char *blkbuf, si
 
 	if (BP_IS_HOLE(bp)) {
 		(void) snprintf(blkbuf + strlen(blkbuf),
-		    buflen - strlen(blkbuf), "B=%llu",
+		    buflen - strlen(blkbuf),
+		    "%llxL B=%llu",
+		    (u_longlong_t)BP_GET_LSIZE(bp),
 		    (u_longlong_t)bp->blk_birth);
 	} else {
 		(void) snprintf(blkbuf + strlen(blkbuf),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510031141.t93BfSnF074199>