Re: Irritating ext2fs corruption

Theodore Y. Ts'o (tytso@mit.edu)
Mon, 3 Aug 1998 14:09:44 -0400


Date: Mon, 3 Aug 1998 02:56:54 +0200
From: Jakob Borg <jb@k2.lund.se>

But I do not want to shut down my system! I just want to get 700 Mb
more free space when I delete a 700 Mb file, without having to fsck
the filesystem and see the "deleted inode has zero dtime" message.

Currently, every once in maybe 5 times I delete a large file, the disk
space never gets reclaimed, even if I unmount it and remount (which
should really sync the filesystem) . It is not my root partition.

Is this some cache problem?

No, it's not a cache problem. The reason why you don't get the space
back is because some process still has an open file descriptor on the
file. The space won't be released until the file descriptor is closed.

You can use a program like ofiles to determine why the file is still in
use. (Hint: if you're using a loopback device, make sure the loopback
is deregistered.)

- Ted

-
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