Re: Support for SEEK_HOLE and SEEK_DATA for sparse files on lseek(2)

From: Al Viro
Date: Sun Jun 18 2006 - 11:12:52 EST


On Sun, Jun 18, 2006 at 09:20:43AM -0400, Andr? Goddard Rosa wrote:
> Hi, all!
>
> Jeff Bonwick, from Slab allocator and ZFS fame is asking for comments on
> supporting SEEK_HOLE and SEEK_DATA for sparse files on lseek(2), like
> stated in this snip:
>
> "Portability
> At this writing, SEEK_HOLE and SEEK_DATA are Solaris-specific. I
> encourage (implore? beg?) other operating systems to adopt these
> lseek(2) extensions verbatim (100% tax-free) so that sparse file
> navigation becomes a ubiquitous feature that every backup and
> archiving program can rely on. It's long overdue."

Well... Description makes sense and it isn't hard to implement.
About the only question is about semantics for directories...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/