https://github.com/rhinstaller/libblockdev