From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:44690 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751840AbdF3KWu (ORCPT ); Fri, 30 Jun 2017 06:22:50 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 90D76ABBD for ; Fri, 30 Jun 2017 10:22:49 +0000 (UTC) Date: Fri, 30 Jun 2017 12:22:49 +0200 From: Arvin Schnell To: linux-fsdevel@vger.kernel.org Subject: Re: [proposal] making filesystem tools more machine friendly Message-ID: <20170630102249.GA1112@suse.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi Jan, I appreciate your proposal and I'm all for it! Working on the storage part of YaST I face similar problems with parsing the output of many different programs. Having a common JSON output will certainly help to make the code simpler and more robust. Currently some parsers are very difficult, esp. when the output attributes contain the chars used as a separator. Some tools even have machine friendly output but it is still error prone. E.g. parted does not protect a ':' in the partition name of its machine friendly output. (Just an example, your proposal is not about parted.) ciao Arvin -- Arvin Schnell, Senior Software Engineer, Research & Development SUSE Linux GmbH, GF: Felix Imend�rffer, Jane Smithard, Graham Norton, HRB 21284 (AG N�rnberg) Maxfeldstra�e 5 90409 N�rnberg Germany