Skip to main content

🧊 blkcache

Userspace transparent block device cache.

⬇️ Deps

sudo apt install libnbd-bin nbdkit-plugin-python nbdfuse fuse3

ℹ️ Usage

uvx blkcache /dev/sr0 file.iso

Then point tools at file.iso instead of /dev/sr0.

Why?

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

How?

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.

🔗 Links

🌍 Related

Metadata

Release files for blkcache 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for blkcache 0.1.0
File Size Uploaded
blkcache-0.1.0.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for blkcache 0.1.0
File Interpreter ABI Platform
blkcache-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.8 kB

Release files / blkcache-0.1.0.tar.gz

Download URL blkcache-0.1.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4b2ef09b0e40f8eda62676898e9849de774bc4810493c72d46326b16dd4aa1be
BLAKE2b-256 checksum
How to use checksums
fc56243cca0936972b44e2edbe302c2f90833ec5cd753b68a335a556163fff49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.20

Release files / blkcache-0.1.0-py3-none-any.whl

Download URL blkcache-0.1.0-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41abb99ccacd213501fba894741b32db0a87d85c39186d9c06d10c87a85083b0
BLAKE2b-256 checksum
How to use checksums
d3d848ca3aaf01380da201bcf0b610690d952dbe9cf7099d4cd765ef5835512d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.20

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page