Skip to contentSkip to conversation

File perforation.

DISCUSSION Steven French 1 participant 1 message Jan 13, 2003 VFS

lore
Share & tools
lore
#0 lore raw

I am not at all sure that it is a hint your theory is just as plausible. Sounds like it is time for me to do some experimentation to prove if your theory is correct.

Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: [email protected]

From: Bryan Henderson on 01/10/2003 07:46 PM

To:    Steven French/Austin/IBM@IBMUS
cc:    [email protected]
From:  Bryan Henderson/San Jose/IBM@IBMUS

Subject: Re: File perforation. (Document link: Steven French)

Quoted 4 lines

The sparse concept is interesting for my particular vfs as well - Windows has an attribute flag presumably to allow an application to supply a hint to the filesystem (when creating a file) that a particular inode is going to be written sparsely.

How sure are you that that's a hint about future access? My understanding (based on very little authority) is that it is actually a _request_ to allocate the file sparsely. I.e. if you don't turn on that flag and then write a byte at 0 and a byte at Block 99, Windows allocates 100 blocks of disk space. If you do turn it on, Windows allocates two blocks.

The reason you'd want the 100 block case is to be sure that when you later go to fill in the middle, you don't get told there's no space. And it is default for backward compatibility because the ancestral filesystem type wasn't sophisticated enough to do sparse.

--
Bryan Henderson IBM Research
San Jose CA Filesystems