Roland, as you have suggested, I have taken a look at using libparted
in libstore. This seems reasonable to do, however, it has two main
drawback: it is huge, which is to say, we want to read a partition table
(libparted does a lot of checks) and we do not really care about creating
other partitions nor creating and checking filesystems. Second, we want
to blindly read partition tables. Parted likes to fail if it finds any
kind of error.
Thus, it might be reasonable to ask the Parted developers to create
a mini library, e.g. libpartread, which contains the desired
functionality.
Comments?
PGP signature