diff options
author | Prakash Surya <[email protected]> | 2015-03-27 13:03:22 +1100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-03-27 14:51:34 -0700 |
commit | a4069eef2e403a3b2a307b23b7500e2adc6ecae5 (patch) | |
tree | fdffc88b612ac92c8c4bdfc7641b0a1045171157 /include/sys/spa.h | |
parent | 9540be9b23fd6f8b5bf7d81853c251010d9b7205 (diff) |
Illumos 5695 - dmu_sync'ed holes do not retain birth time
5695 dmu_sync'ed holes do not retain birth time
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: George Wilson <[email protected]>
Reviewed by: Christopher Siden <[email protected]>
Reviewed by: Bayard Bell <[email protected]>
Approved by: Dan McDonald <[email protected]>
References:
https://www.illumos.org/issues/5695
https://github.com/illumos/illumos-gate/commit/70163ac
Ported-by: Chris Dunlop <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3229
Diffstat (limited to 'include/sys/spa.h')
-rw-r--r-- | include/sys/spa.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/sys/spa.h b/include/sys/spa.h index 2f73793fe..83b6723a4 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -501,12 +501,13 @@ _NOTE(CONSTCOND) } while (0) if (bp == NULL) { \ len += func(buf + len, size - len, "<NULL>"); \ } else if (BP_IS_HOLE(bp)) { \ - len += func(buf + len, size - len, "<hole>"); \ - if (bp->blk_birth > 0) { \ - len += func(buf + len, size - len, \ - " birth=%lluL", \ - (u_longlong_t)bp->blk_birth); \ - } \ + len += func(buf + len, size - len, \ + "HOLE [L%llu %s] " \ + "size=%llxL birth=%lluL", \ + (u_longlong_t)BP_GET_LEVEL(bp), \ + type, \ + (u_longlong_t)BP_GET_LSIZE(bp), \ + (u_longlong_t)bp->blk_birth); \ } else if (BP_IS_EMBEDDED(bp)) { \ len = func(buf + len, size - len, \ "EMBEDDED [L%llu %s] et=%u %s " \ |