|
|
Log in / Subscribe / Register

O_DIRECT read of sector 0

O_DIRECT read of sector 0

Posted Jul 10, 2010 10:45 UTC (Sat) by eludias (guest, #4058)
In reply to: O_DIRECT read of sector 0 by wstearns
Parent article: Bcache: Caching beyond just RAM

I was under the impression that bcache cached block devices (hence the name ), and not filesystems. But you have a good point: if I would cache the partition and not the whole device, I might be able to circumvent it by reading outside the partition.


to post comments

O_DIRECT read of sector 0

Posted Jul 10, 2010 21:13 UTC (Sat) by wstearns (guest, #4102) [Link]

You're correct; bcache does cache block devices. I phrased it poorly; the idea I failed to get across was that the filesystems we'd normally submit to bcache to cache are on individual partitions (which linux treats as block devices) as opposed to the entire drive, allowing you to bypass bcache on sector 0 and still cache the partitions.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds