On 2016-02-04 22:11, Anand Jain wrote:
If you look critically we have been using UI/CLI as API,
IMO these two class of interfaces be distinct clearly.
Btrfs needs library functions/APIs which is callable in
popular scripting language like python.
I wholeheartedly agree. At a minimum, we need to get our C API properly
in line. I'm not certain how closely libbtrfs matches the btrfs CLI,
but I'm pretty sure we have all the functionality needed for language
bindings there, we just need to solidify the API (or at least figure out
some way to properly version it). One thing I would love to see added
to both libbtrfs and the CLI though is some way to make EXTENT_SAME
ioctl calls on arbitrary extents, there's no way to do this without
writing your own program, and calling arbitrary ioctls from Python or
Java or any number of other languages is decidedly non-trivial compared
to C or C++.
--
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