Hi, A new version has been pushed by the Alyseo team, regarding the previous comments, we have integrated the nvpair library as suggested.
Advice and comments are welcome to continue the process of JSONification of others command. Currently, command "zfs list" is implemented. https://github.com/Alyseo/zfs/tree/json Regards, The Alyseo Team On Mon, Nov 10, 2014 at 5:48 PM, Garrett D'Amore <[email protected]> wrote: > > > On Nov 8, 2014, at 8:01 AM, Matthew Ahrens <[email protected]> wrote: > > > > > > FYI - Long term, we'd like the kernel to do more of the property > processing, so this could eventually turn into simply: > > - do an ioctl to get the requested properties of the requested > datasets, returning an nvlist > > - print nvlist as json (which has already been implemented, e.g. by > Joyent) > > Is there an intent that the kernel do JSON encoding (or decoding)? > > Ultimately, I think this is best done in userland, as there are other > formats than JSON that are interesting (e.g. msgpack), and JSON’s inability > (per spec) to encode everything that might in our nvlist’s (specific > numeric types, especially 64-bit integers) is kind of annoying. Agree and will see what the community decide to focus on for mid-long term. In the mean time and based on all conversation done today during dev summit event on this topic, it has been decided to move forward on this proposal and include it in the hackathon to give it a boost. To do so, Alyseo team will do the hackathon from France (night shift). You can join the team : - email = [email protected] - chat on skype = teamalyseo Goal is : 1/ to agree and clean up the code released (zfs list) implementation available here : https://github.com/Alyseo/zfs/tree/json 2/ move forward and jsonify as much outputs as possible during the hackathon Thanks Yacine
_______________________________________________ developer mailing list [email protected] http://lists.open-zfs.org/mailman/listinfo/developer
