Project

General

Profile

Bug #4966

zpool list iterator does not update output

Added by Christopher Siden about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2014-07-07
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

George Wilson:

Running 'zpool list <pool> <count>' does not update the output.

While removing files I ran:

# zpool list data 1
NAME   SIZE  ALLOC   FREE  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
data  7.94G  6.72G  1.22G         -    84%  1.00x  ONLINE  -
data  7.94G  6.72G  1.22G         -    84%  1.00x  ONLINE  -
data  7.94G  6.72G  1.22G         -    84%  1.00x  ONLINE  -
data  7.94G  6.72G  1.22G         -    84%  1.00x  ONLINE  -
data  7.94G  6.72G  1.22G         -    84%  1.00x  ONLINE  -

Running a second invocation after the remove:
# zpool list data
NAME   SIZE  ALLOC   FREE  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
data  7.94G  5.59G  2.35G         -    70%  1.00x  ONLINE  -

There are actually two problems:

1. the vdev stats are not being updated
2. the pool alloc and free sizes are not being updated

History

#1

Updated by Electric Monk about 5 years ago

  • Status changed from In Progress to Closed

git commit cd67d23d32df7b247d00e5b82257a2220b1e0c13

commit  cd67d23d32df7b247d00e5b82257a2220b1e0c13
Author: George Wilson <george.wilson@delphix.com>
Date:   2014-07-09T04:46:45.000Z

    4966 zpool list iterator does not update output
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Reviewed by: Christopher Siden <christopher.siden@delphix.com>
    Reviewed by: Dan McDonald <danmcd@omniti.com>
    Approved by: Garrett D'Amore <garrett@damore.org>

Also available in: Atom PDF