Re: Zero length files - an alternative approach?

From: Andreas T.Auer
Date: Sun Mar 29 2009 - 08:03:15 EST




On 29.03.2009 13:22 Måns Rullgård wrote:
> Consider this scenario:
>
> 1. Create/write/close newfile
> 2. Rename newfile to oldfile
> 3. Open/read oldfile. This must return the new contents.
> 4. System crash and reboot before delayed allocation/flush complete
> 5. Open/read oldfile. Old contents now returned.
>
> This rollback isn't obviously, to me at least, without problems of its
> own.
>
>
Having the old data in 5) is far better than having no data in 5).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/