Userspace transparent block device cache.
sudo apt install libnbd-bin nbdkit-plugin-python nbdfuse fuse3
uvx blkcache /dev/sr0 file.iso
Then point tools at file.iso
instead of /dev/sr0
.
Copying some CDs and needed a way to do mount in FUSE, dump the filesystem, and
then ddrescue /dev/sr0
to get the image if possible. This means it doesn't
read the disk twice, even if you have a ton of drives attached
It uses nbdkit
to create a Network Block Storage device in Python, mounts it
using fuse
, then creates a mmapped disk cache of sectors as they're read.