/pblock-bd

Attach pblock connection as a block device

Primary LanguageCGNU General Public License v2.0GPL-2.0

pblock-bd

Utility to attach pblock connection as a block device.

Under the hood it uses nbd kernel interface and BUSE to communicate with it.

nbd and pblock differences

Device size

pblock doesn't have notion of file size and nbd requires it to create block device. As a result you have to pass device size in pblock-bd command args.

Transactional access

I didn't found any information about nbd being transactional, so currently every read or write on nbd is wrapped in separate pblock transaction.

Install

make install PREFIX=~/.local

Tests

Dependencies:

Currently tests require root previlages. Test runner uses sudo to provide them.

To run tests:

make test