Re: atomicity

Jamie Lokier (
Mon, 7 Dec 1998 13:51:25 +0000

On Sun, Dec 06, 1998 at 04:42:09PM +0000, Alan Cox wrote:
> > open target file for writing
> > while target file not fully written
> > write until error
> > delete one of the small files at random
> > close target file
> > delete all of the small random files that remain
> >
> > Are there any file systems around that will manage to resist fragmentation
> > if subjected to that?
> ext2fs will quite happily handle that situation (in fact its not an atypical
> pattern of I/O on a big multiuser box - consider someone doing a download
> as another user does an rm -r.

No, no, it's not typical for a user to repeatedly download until the
disk is 100% full (including the reserved percentage).

Of course that's the point. Ordinary users _can't_ do that, so
bad fragmentation is avoided.

-- Jamie

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