On Mon, Sep 16, 2024 at 12:00:53PM +0300, Anssi Saari wrote:
> Jeffrey Walton <noloa...@gmail.com> writes:
> 
> > The file system cache is still holding the writes. If I remove the
> > SDcard and try to use it, the image is corrupt. When I say "remove", I
> > mean pop the card out of the card reader since the write has
> > supposedly finished.
> 
> All right. So in fact, block devices either have write back write
> caching or they don't and apparently the device driver decides
> that. hdparm may be able to control caching but I don't know it works
> for USB devices.

You are talking device cache. Jeffrey is talking file system cache.
Two different (and independent) layers.

Actually, dd doesn't "do" file system cache (unless you are dd'ing
to a file, of course).

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature

Reply via email to