Re: [PATCH 1/7] block: Add block_flush_device()

From: Chris Mason
Date: Tue Mar 31 2009 - 09:33:25 EST


On Tue, 2009-03-31 at 09:23 -0400, Mark Lord wrote:
> Chris Mason wrote:
> >
> > You can test this pretty easily:
> >
> > dd if=/dev/zero of=foo bs=4k count=10000 oflag=direct
> >
> > If that runs faster than 1MB/s the write cache is still on.
> ..
>
> Or simply: hdparm -W /dev/sd? ## (for SATA/PATA drives)

I'm afraid I tend to hammer on the drive instead of asking it politely,
but I guess hdparm is trust worthy these days ;)

-chris


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/