Re: ext2fs indirect blocks: does 2.0.35 still zero them?

Stephen C. Tweedie (sct@redhat.com)
Mon, 24 Aug 1998 17:22:08 +0100


Hi,

On Fri, 14 Aug 1998 17:36:49 +0000, "Matthew D. Langston"
<langston@SLAC.Stanford.EDU> said:

> Hello all,
> Does kernel 2.0.35 still zero out the indirect, doubly-indirect and
> triply-indirect blocks when deleting files?

Sometimes. It does do a bforget() on the indirect blocks, which guards
against the zeros being written to disk. However, for large files
there's nothing to stop a partially deleted indirect block from being
synced to disk automatically before the entire delete finishes and the
bforget() discards the buffer. If that happens, you'll still lose some
mapping information during the delete.

--Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html