Re: [PATCH for testing] cow behaviour for hard links

From: Sytse Wielinga
Date: Wed Mar 10 2004 - 18:14:44 EST

On Wednesday 10 March 2004 20:34, Jörn Engel wrote:
> Interna:
> I introduced a new flag for inodes, switching between normal behaviour
> and cow for hard links. Flag can be changed and queried per fcntl().
> Ext[23] needed a bit of tweaking to write this flag to disk. open()
> will fail, when a) cowlink flags is set, b) inode has more than one
> link and c) write access is requested.

I really like this! It makes me wonder why anyone hasn't come up with this
idea before...

Pitifully, it only solves half of the problem: it does make sure you can't
make any mistakes anymore, but it doesn't break the files up when a process
wants to write to a linked file. You still have to copy and move every time
you wish to edit a file. I'd like to have the kernel doing just that. I'll
have a look whether I can write a patch, but I don't promise anything as I
don't have much time :-)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at