Re: (reiserfs) Re: dedicated logging devices

From: Stephen C. Tweedie (sct@redhat.com)
Date: Sun Jun 11 2000 - 03:34:41 EST


Hi,

On Sat, Jun 10, 2000 at 10:53:10PM -0700, David Gould wrote:
>
> What exactly is being logged for a file deletion that takes so much space?

> Is this for the general case, or only for files with a lot of indirect
> blocks?

It's worse with lots of indirect blocks, but on ext2/3 even a small file
touches loads of blocks when deleted, simply because delete is an
operation on both the file and its directory all at once.

You have to update the file's inode, inode bitmap and block bitmaps,
plus any group descriptors affected; plus the directory block containing
the name; plus the block and inode quota entries if you have quotas
enabled.

Cheers,
 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.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:22 EST