From owner-freebsd-current@FreeBSD.ORG Sun Mar 1 20:43:46 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 14B8988A for ; Sun, 1 Mar 2015 20:43:46 +0000 (UTC) Received: from mail-pd0-x22a.google.com (mail-pd0-x22a.google.com [IPv6:2607:f8b0:400e:c02::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CD87E155 for ; Sun, 1 Mar 2015 20:43:45 +0000 (UTC) Received: by pdbfl12 with SMTP id fl12so3102079pdb.5 for ; Sun, 01 Mar 2015 12:43:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=Nb073sCFWgzQOdA71H6RqaMQJFJcD8xTJk/ngNxj1Sk=; b=y1WX1EE6ZEO2vxvbK7r3VR8Df3XbLSI133TFRo61Sjuc+jZXAvcVz7x4mtye0SXSQ4 1rFDslCU/xPHpZ4JNts1jhdycvV05CbSDExS8Dm7acLqQ9j8167qXwBDpUIy8qsp9igg W2DsyQktzVS42foJ29rjF1BDZIg/46UOm0dbAU2gcYcYDRJWrnImuQrx0GOi2hgWYxQm 0d89BWs8nWX5UE7mmTaxONyyxG3dIFs3oTwpZjIn5qaq/J0kdbPhyDK8zrvFCN20oYMr Hr64ocNOE0yjbNsoeY/4DPPodGkKBVwFfS31TUQyS+qQrrQMzzJ3tZhUGxmKY6fIkVlI eVzw== X-Received: by 10.68.95.130 with SMTP id dk2mr41571459pbb.51.1425242625374; Sun, 01 Mar 2015 12:43:45 -0800 (PST) Received: from ?IPv6:2601:8:ab80:7d6:b571:b5ed:888f:2793? ([2601:8:ab80:7d6:b571:b5ed:888f:2793]) by mx.google.com with ESMTPSA id hr3sm9902572pbb.13.2015.03.01.12.43.44 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Mar 2015 12:43:44 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_45536404-150D-48A2-8D02-91C80A38318C"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Massive libxo-zation that breaks everything From: Garrett Cooper In-Reply-To: <54F31510.7050607@hot.ee> Date: Sun, 1 Mar 2015 12:43:42 -0800 Message-Id: References: <54F31510.7050607@hot.ee> To: "Sulev-Madis Silber (ketas)" X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2015 20:43:46 -0000 --Apple-Mail=_45536404-150D-48A2-8D02-91C80A38318C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Mar 1, 2015, at 5:33, Sulev-Madis Silber (ketas) = wrote: > Hello. >=20 > First, I would be happy to have JSON and XML output about filesystems, > users, routes... but I don't like how it makes code of df, w, netstat > hard to read/maintain and often broken. >=20 > I don't think it would be good to continue with this. Maybe the effort > should be put to creating new layer/library and then something on top = of > it that actually outputs JSON and XML. >=20 > Or, if that's too difficult... maybe just regular df/w/netstat could = be > copied to somewhere else and made code libxo-output-only. And original > df/w/netstat changes reverted and left alone. >=20 > Then, maybe later, df/w/netstat/... could be updated to this new > layer/library. Or maybe this should be just left as it is. >=20 > That would mean having two netstat's in system, which could be both = good > (separation) and bad (maintaining). >=20 > Just some ideas... I don't know how to solve this issue fully. I'm = also > not likely the one who would write code for all this. Hell, those = aren't > even all my ideas here. I just worry that system drop-in xo-zation is > bad for overall health of base. >=20 > Oh and, it makes rescue larger and more complex, too? On that, there = was > suggestion to maybe create separate "first aid kit" and "emergency = room" > types of system rescue utils/methods. Hi Sulev, Could you please cite instances where things were broken with = converting utilities (netstat seems to be a sticking point =97 do you = have data to support this?) over to libxo? The big problem (I think) is = lack of tests with these utilities to ensure that output doesn=92t break = unknowingly. I definitely see the wisdom in having /rescue be de-libxoified. = It seems to go against the purpose of having a small =93rescue image=94 = binary =97 whereas the bsdxml integration into geom(3)/geom(4) is a = necessary evil. Thanks! --Apple-Mail=_45536404-150D-48A2-8D02-91C80A38318C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJU83n+AAoJEMZr5QU6S73eexYH/1MFAqXiTyCYqTU6y7bYj9WI cTweLVA9tD/IPgjfcybcx8E1IX7tiBPsUpFd19knGQXuEIcTJYKu/amceaouixIe p8trz58rpfoIc8lAUsyDZ41nUzTcREHpiqM5SfURoHpLQemwjfrIbOLG8kLBVKPc DVTigpRNjSTBNCBtQ842qc15A27RZk75HHGltMKoLtFIJrHS9gFiIV3HUIkLeSs6 RbwxJAkBW365egC6JAby6O/ItmER63PSv4pjU/gbWytaYebKMZwBOsH7a1b19ajs 0GvM1mib5r9iRiCyULE9qa80Pr3tOmfs3keyUYjHTPgTP7tHMnCxsDedjcawOks= =i689 -----END PGP SIGNATURE----- --Apple-Mail=_45536404-150D-48A2-8D02-91C80A38318C--