Re: fsync(/dev/hda) does not sync data written to /dev/hda1

From: Oliver Xymoron (oxymoron@waste.org)
Date: Sat Aug 12 2000 - 11:28:52 EST


On Fri, 11 Aug 2000, Pavel Machek wrote:

> > > > ...which is prety ugly behaviour. Is there way to fix it?
> >
> > No. This is an aliasing problem - the page cache sees hda and hda1 as
> > independent entities. The current answer is don't do that.
>
> Okay, my problem is I want noflushd to sync some disks but not all. I
> guess I can loop over hda1..hda16 and fsync all of them, but that's
> ugly (tm).

I don't think it's unreasonable to put that loop inside the block drivers
(it probably does the same thing on SCSI). It doesn't address the more
general aliasing problem, but it seems sane enough.

--
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.." 

- 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 : Tue Aug 15 2000 - 21:00:27 EST