Howdy!
I am pondering writing a little C program that use libmicrohttpd and
libbtrfsutil to display some very basic (overview) details about BTRFS.
I was hoping to display the same information that'btrfs fi sh /mnt' and
'btrfs fi us -T /mnt' do, but somewhat combined. Since I recently just
figured out how easy it was to do svg graphics I was hoping to try to
visualize things a bit.
What I was hoping to achieve is:
- show all filesystems
- ..show all devices in a filesystem (and mark missing devices clearly)
- ....show usage and/or allocation for each device
- ....possibly display chunks as blocks (like old defrag programs) where
the brightness indicate how utilied a (meta)data chunk is.
- ....possibly mark devices with errors ( 'btrfs de st /mnt' ).
The problem is ... I looked at libbtrfsutil and it appears that there is
mostly sync + subvolume/snapshot stuff in there.
So my question is: Is libbtrfsutil the right choice and intended to at
some point (in the future?) supply me with the data I need for these
things or should I look elsewhere?
PS! This a completely private project for my own egoistic reasons.
However if it turns out to be useful and the code is not too
embarrassing I am happy put the code into public domain ... if it ever
gets written.... :S
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html