file open -> disk full -> save -> file 0 byte

Eric Sandeen sandeen at redhat.com
Thu Oct 7 13:41:21 UTC 2010


Ralf Gross wrote:
> Hi,
> 
> a user had a file open when the disk ran full. He then saved the file
> and now it's size is 0 byte (ext3). I don't know much more about this,
> but he asked me if there is any chance to get the data of this file
> back?

I'm not sure how that happens; writes to the file should have hit ENOSPC;
ext3 doesn't even have delalloc to worry about so.

Did the application check the write return value?

(or maybe it was mmap writes, and since ext3 has no pg_mkwrite, it'd
just get lost, unfortunately...)

-Eric
 
> Ralf




More information about the Ext3-users mailing list