Project

General

Profile

Feature #1337

`zpool status -D' should tell if there are no DDT entries

Added by Yuri Pankov about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2011-08-04
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

As above. While here, add `-D' to the usage output and format 'scan' line similar to others..

Output:

  pool: datapool
 state: ONLINE
  scan: none requested
config:

        NAME         STATE     READ WRITE CKSUM
        datapool     ONLINE       0     0     0
          raidz2-0   ONLINE       0     0     0
            c2t0d0   ONLINE       0     0     0
            c2t10d0  ONLINE       0     0     0
            c2t11d0  ONLINE       0     0     0
            c2t12d0  ONLINE       0     0     0
            c2t13d0  ONLINE       0     0     0
            c2t14d0  ONLINE       0     0     0
            c2t15d0  ONLINE       0     0     0
            c2t1d0   ONLINE       0     0     0
            c2t2d0   ONLINE       0     0     0
            c2t3d0   ONLINE       0     0     0
            c2t4d0   ONLINE       0     0     0
            c2t5d0   ONLINE       0     0     0
            c2t6d0   ONLINE       0     0     0
            c2t8d0   ONLINE       0     0     0
            c2t9d0   ONLINE       0     0     0

errors: No known data errors

 dedup: DDT entries 3, size 3925 on disk, 2730 in core

bucket              allocated                       referenced
______   ______________________________   ______________________________
refcnt   blocks   LSIZE   PSIZE   DSIZE   blocks   LSIZE   PSIZE   DSIZE
------   ------   -----   -----   -----   ------   -----   -----   -----
     1        3    384K    272K    273K        3    384K    272K    273K
 Total        3    384K    272K    273K        3    384K    272K    273K

  pool: syspool
 state: ONLINE
  scan: resilvered 2.67G in 0h3m with 0 errors on Wed Jul 20 01:05:47 2011
config:

        NAME          STATE     READ WRITE CKSUM
        syspool       ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            c1t0d0s0  ONLINE       0     0     0
            c1t1d0s0  ONLINE       0     0     0
        spares
          c1t2d0      AVAIL

errors: No known data errors

 dedup: no DDT entries


Files

zpool.diff (1.33 KB) zpool.diff Yuri Pankov, 2011-08-04 03:25 PM

History

#1

Updated by Yuri Pankov about 8 years ago

Does this look correct at all so I could submit a webrev or are there any showstoppers from the start?

#2

Updated by Albert Lee about 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed in:
changeset: 13432:d1ad8d106d64
tag: tip
user: Yuri Pankov <>
date: Sat Aug 13 13:21:16 2011 -0400
files: usr/src/cmd/zpool/zpool_main.c
description:
1337 `zpool status -D' should tell if there are no DDT entries
Reviewed by: Eric Schrock <>
Reviewed by: Igor Kozhukhov <>
Reviewed by: George Wilson <>
Approved by: Albert Lee <>

Also available in: Atom PDF