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

Chris Mason
2009-03-31T13:33:25Z

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