Re: [proposal] making filesystem tools more machine friendly

2017-07-12 Thread Richard W.M. Jones
libguestfs could really use structured output from more of the command line tools. Particularly: - all the ext4 tools - all the xfs tools - all the btrfs tools - parted and more. See also: https://github.com/libguestfs/libguestfs/tree/master/daemon A dbus service would not be useful.

Re: [proposal] making filesystem tools more machine friendly

2017-07-05 Thread Christoph Hellwig
Hi Jan, I really like the idea out json output for fs/block tools. nvme-cli has been doing it for a while, and that has been very useful. It comes with it's own little handrolled json output helpers: https://github.com/linux-nvme/nvme-cli/blob/master/json.c so it doesn't introduce any

Re: [proposal] making filesystem tools more machine friendly

2017-06-30 Thread Emmanuel Florac
Le Fri, 30 Jun 2017 10:17:17 +0200 Jan Tulak écrivait: > A structured output is something we should aim for. It helps a lot > with the issues and it is the cheapest option. If it goes well, it can > be later on followed by creating a library, although, at this moment, > that seems a premature thi

[proposal] making filesystem tools more machine friendly

2017-06-30 Thread Jan Tulak
AKA filesystem API Hi guys Currently, filesystem tools are not made with automation in mind. So any tool that wants to interact with filesystems (be it for automation, or to provide a more user-friendly interface) has to screen scrape everything and cope with changing outputs. I think it is the