Messages in this thread | | | Date | Thu, 25 Mar 2004 17:49:42 +0000 | From | Jamie Lokier <> | Subject | Re: [PATCH] cowlinks v2 |
| |
Eric W. Biederman wrote: > Actually there is... You don't do the copy until an actual write occurs. > Some files are opened read/write when there is simply the chance they might > be written to so delaying the copy is generally a win.
Programs depend on the inode number returned by fstat() not changing, and maybe in some other circumstances, even if they subsequently write to the file.
(It's ok for open() to change the inode number, because that's equivalent to another program changing the filesystem in parallel).
How do you handle that if COW occurs later than open()? You could also force COW when fstat() is called, I suppose.
-- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |