Converting LBAs to byte offsets through the GEOM stack
Adrian Chadd
adrian at freebsd.org
Sat Dec 20 06:01:00 UTC 2014
Hi,
So when I did stuff like this back in the day, I also had to deal with
some layers doing not just straight static translations, but things
like dynamic sector remapping for what was effectively software error
correction. Reaching "around" the layers with some mapping from
virtual -> physical disk device and blocks ended up being problematic
as between the time you did the lookup and the time you did the IO,
the mapping could change.
So when doing stuff like this, I ended up piggybacking commands
through the translation layers, so stuff was done (a) in line with the
rest of IO processing, and (b) wouldn't suffer from stale data.
It doesn't matter as long as the translation stays static, but there's
nothing in GEOM that requires you to have a static translation layer.
:)
-adrian
More information about the freebsd-geom
mailing list