Re: [PATCH] cowlinks v2

From: Eric W. Biederman
Date: Sat Mar 27 2004 - 19:44:49 EST

ebiederm@xxxxxxxxxxxx (Eric W. Biederman) writes:

> The addictive thing about the prototype implementation was that you
> could do ``ln --cow / /some/other/directory'' and you would have an
> atomic snapshot of your filesystem. Definitely not a feature for the
> first implementation but certainly something to dream about.

Addictive but broken by design. If any of the files inside your
directory tree have hard links outside of the tree there is no way
short of recursing through all of the subdirectories directories to
tell if a given inode has is in use. Except in the special case
where you are taking a cow copy of the entire filesystem. At which
point a magic mount option is likely a better interface.

Ok that simplifies the long term design a little more. cow
directories cannot work correctly in all cases even when implemented
in the kernel. So the directory walking must still be done in user

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