Re: [PATCH] SMP race in ext2 - metadata corruption.

From: Ville Herva (
Date: Fri Apr 27 2001 - 09:32:50 EST

On Fri, Apr 27, 2001 at 09:23:57AM -0400, you [Alexander Viro] claimed:
> On Fri, 27 Apr 2001, Vojtech Pavlik wrote:
> > Actually this is done quite often, even on mounted fs's:
> >
> > hdparm -t /dev/hda
> You would need either hdparm -t /dev/hda<something> or mounting the
> whole /dev/hda.
> Buffer cache for the disk is unrelated to buffer cache for parititions.

Well, I for one have been running

hdparm -t /dev/md0
time head -c 1000m /dev/md0 > /dev/null

while /dev/md0 was mounted without realizing that this could be "stupid" or
that it could eat my data.

/dev/md0 on /backup-versioned type ext2 (rw)

I often cat(1) or head(1) partitions or devices (even mounted ones) if I
need dummy randomish test data for compression or tape drives (that I've
been having trouble with).

BTW: is 2.2 affected? 2.0?

-- v --
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

This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:18 EST