tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: syncing a directory



On Thu, Jul 10, 2008 at 12:50:56PM -0500, David Young wrote:
> > Actually, we do have that: fsync_range(fd, FDISKSYNC, ...).
> 
> I thought while we do have an API, we do not have a reliable
> implementation, because we cannot reliably flush the write cache on
> many disks, especially those that are connected through inexpensive
> USB->IDE adapters.

it's true. Some (old) IDE disks also don't have the FLUSH_CACHE command.
In such cases I can't see what improvements could be done. It's not the
implementation which is unreliable, it's the hardware.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index