[lkml]   [2009]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: replace() system call needed (was Re: EXT4-ish "fixes" in UBIFS)

>> My proposal is
>> rename() stays.
>> replace(src, bar) is rename that ensures that bar will contain valid
>> data after powerfail.
> Surely the only way to "insure" this is to spin up the drive, write the
> meta-data and data back and make sure that it is not held in volatile
> write cache?

Well, no. "will contain valid data" but may contain _old_ valid data.

So the way to do that would be "wait until you have to spin disk up
anyway or until timeout, then write data first, then do rename".

AFAICT that's semantics gnome (etc) wants.
(cesky, pictures)

 \ /
  Last update: 2009-03-31 00:15    [W:0.088 / U:2.228 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site