SupraSummus / pblock-bd

Attach pblock connection as a block device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Attach pblock connection as a block device

License:GNU General Public License v2.0


Languages

Language:C 90.9%Language:Makefile 6.9%Language:Shell 2.2%