freebsd-dev/lib
Andriy Gapon a4b6d5e128 5692 expose the number of hole blocks in a file
illumos/illumos-gate@2bcf0248e9

https://www.illumos.org/issues/5692
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.

Author: Max Grossman <max.grossman@delphix.com>
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>
2015-08-18 14:10:04 +00:00
..
libctf/common
libdtrace 4470 overly aggressive D integer narrowing breaks 32-bit ustack helpers 2014-06-03 01:55:27 +00:00
libgen/common
libnvpair 5005 libnvpair JSON output broken by lint fixes 2014-12-05 23:43:15 +00:00
libuutil/common
libzfs/common 5692 expose the number of hole blocks in a file 2015-08-18 14:10:04 +00:00
libzfs_core/common 5746 more checksumming in zfs send 2015-08-10 19:32:30 +00:00
libzpool/common 5960 zfs recv should prefetch indirect blocks 2015-08-12 22:36:02 +00:00
pyzfs/common 4369 implement zfs bookmarks 2014-01-01 01:15:53 +00:00