Re: Re: [Bug #2955] .idata file becomes zero size if disk becomes full

Jason Rennie <[email protected]> Tue, 13 May 2003 08:29:09 -0400
Newsgroups gmane.mail.ifile.general
Message-ID <[email protected]>
[email protected] said:
> i don't know what ifile does in situations like this, but the
> "standard" way of doing this would be to write a temporary database
> onto the same filesystem and only rename(2) it into its final state
> after the update has been successful.  if not, it might return
> "temprary error". 

That's what the code does.  Pre-1.3.1, it didn't die when there was an 
error writing .idata to a temporary file.  Now, it should.  The code is 
in the function ifile_write_db in database.c if you want to take a look.

Jason