Re: Safe File Update (atomic)
On Thu, 30 Dec 2010, Olaf van der Spek wrote:
> On Thu, Dec 30, 2010 at 4:24 PM, Henrique de Moraes Holschuh
> <firstname.lastname@example.org> wrote:
> > On Thu, 30 Dec 2010, Olaf van der Spek wrote:
> >> The reason I asked for a kernelland solution is because it's hard if
> >> not impossible to do properly in userland. But some kernel devs (Ted
> >> and others) don't agree. They reason that the desire to preserve all
> >> meta-data isn't reasonable by itself.
> > It isn't.
> Why not?
You touched it, it is not the same file/inode anymore.
> How does it handle meta-data you don't know about yet?
It doesn't. You need a "copy inode without the file data" filesystem
interface to be able to do that in the first place. It might exist, but I
never heard of it.
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot