[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tuhs
Subject:    Re: [TUHS] Unix filesystem semantics history - files with holes
From:       Bakul Shah <bakul () bitblocks ! com>
Date:       2019-04-11 19:49:34
Message-ID: D70410E5-4EFA-4C5A-A2A8-8BF00F7A4824 () bitblocks ! com
[Download RAW message or body]

On Apr 11, 2019, at 8:57 AM, Richard Tobin <richard@inf.ed.ac.uk> wrote:
> 
>> When did the Unix filesystem add the semantics for "files with holes" (large,
>> sparse files)?
> 
> It was there in the first edition:
> 
> https://www.bell-labs.com/usr/dmr/www/pdfs/man51.pdf

You still had to read all those unallocated blocks as zeroes
if you wanted to copy such a "holey" file. I believe it was
Solaris (may be just for zfs?) that added SEEK_HOLE and
SEEK_DATA lseek whence values.

This could've been hidden if only mmap was allowed on files.
Or alternately read/write buffering was done by the kernel
or the {network,file}-server - which can avoid copying in
cases where it makes sense. =
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic