Subject: Re: lseek() extension for spare files
To: Jason Thorpe <firstname.lastname@example.org>
From: Reinoud Zandijk <email@example.com>
Date: 09/21/2006 23:15:04
Content-Type: text/plain; charset=us-ascii
On Thu, Sep 21, 2006 at 01:51:28PM -0700, Jason Thorpe wrote:
> >as can be found in Solaris 10. Linux aparently has already
> >adopted/implented it also.
> >It adds the SEEK_DATA and SEEK_HOLE `whence' arguments to lseek().
> >For a
> >more detailed look see the solaris 10 man page :
> So, it looks like these new whence arguments are essentially designed
> to enumerate the holes or filled regions of the file.
> I don't see anything particularly wrong with having it (note I have
> not yet reviewed the actual patch), but what's the application usage?
Most common usage i'd think is archiving/backing up sparce files with say
adapted versions of tar(1), but also cp(1) could preserve sparse files when
Auto-sparsing files by a file system would be nice but i dont know how to
do that other than scanning written/read sectors... wich might take a small
hit on performance when activated but i don't think its a very common
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v220.127.116.11 (NetBSD)
-----END PGP SIGNATURE-----