[lkml]   [2001]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: ext2 not NULLing deleted files?
In article <01081709381000.08800@haneman> you wrote:

> I just recognized there's an "undelete" now for ext2 file systems [a KDE

not new.

> "The Other OS" in its professional version does of course clear the deleted

(assuming NT)

No it doesn't, and there even has been cases in the past where its
journaling filesystem was, under some conditions, extending files
with old data blocks without deleting them (a bit like the OLE `let's
put anything which is in RAM in this MS-Word file'), allowing other
users to snoop on each other's data / deleted data [no references
sorry, from memory].

Special care, as far as I understand it, must be taken when allocating
fs data blocks. The following sequence must be followed:

1. reserve them
2. clear them
3. mark them as allocated.

if 2 is too expensive, maybe it's sufficient to mark them as dirty
and zero them in memory. But what happens if the system crashes, with
the metadata to the disk (block allocated), but the data block not
yet filled/zeroed ?

Maybe some flags somewhere telling that those data blocks are allocated
but not yet committed ?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.069 / U:1.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site