libblkid-tiny: add support for UBI superblock
authorRafał Miłecki <rafal@milecki.pl>
Mon, 7 Aug 2017 09:20:09 +0000 (11:20 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 7 Aug 2017 09:20:09 +0000 (11:20 +0200)
commit98fd5b40a70dc18e56134b0b48d224698228943e
treead9f39a044769c002d6ed6ea033d3d33f910b8ff
parent8ab4fda66a136f5b0f1e5dff9d3649961ffc9158
libblkid-tiny: add support for UBI superblock

Detecting UBI superblock may be useful for tools wanting to simplify or
automate attaching UBI. Please note it's not directly related to the
ubifs support which is just a filesystem working on top of UBI volume.

This patch adds simple code reading UBI version and unique number and
setting it in the blkid_probe.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
CMakeLists.txt
libblkid-tiny/libblkid-tiny.c
libblkid-tiny/superblocks.h
libblkid-tiny/ubi.c [new file with mode: 0644]