Project

General

Profile

Bug #5692

expose the number of hole blocks in a file

Added by Matthew Ahrens over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2015-03-08
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

We would like to expose the number of hole (sparse) blocks in a file. This can be useful to for example if you want to fill in the holes with some data; knowing the number of holes in advances allows you to report progress on hole filling. We could use SEEK_HOLE to do that but it would be O(n) where n is the number of holes present in the file.

History

#1

Updated by Electric Monk over 4 years ago

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

git commit 2bcf0248e992f292c7b814458bcdce2f004925d6

commit  2bcf0248e992f292c7b814458bcdce2f004925d6
Author: Max Grossman <max.grossman@delphix.com>
Date:   2015-04-05T05:27:46.000Z

    5692 expose the number of hole blocks in a file
    Reviewed by: Adam Leventhal <ahl@delphix.com>
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Reviewed by: Boris Protopopov <bprotopopov@hotmail.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF