Re: [PATCH] cowlinks v2

Davide Libenzi
2004-03-20T16:48:48Z

On 20 Mar 2004, Patrick J. LoPresti wrote:

> What happens if the disk fills while you are making the copy? Will
> open(2) on an *existing file* then return ENOSPC?
>
> I do not think you can implement this without changing the interface
> to open(2). Which means applications have to be made aware of it
> anyway. Which means you might as well leave your implementation as-is
> and let userspace worry about creating the copy (and dealing with the
> resulting errors).

FWIW I did this quite some time ago to speed up copy+diff linux kernel
trees:

http://www.xmailserver.org/flcow.html

It is entirely userspace and uses LD_PRELOAD on my dev shell.

- Davide