From owner-freebsd-current@FreeBSD.ORG Sun Mar 1 13:34:24 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 85A3857C for ; Sun, 1 Mar 2015 13:34:24 +0000 (UTC) Received: from mail-we0-x22f.google.com (mail-we0-x22f.google.com [IPv6:2a00:1450:400c:c03::22f]) (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 17866F49 for ; Sun, 1 Mar 2015 13:34:24 +0000 (UTC) Received: by wesu56 with SMTP id u56so28514448wes.10 for ; Sun, 01 Mar 2015 05:34:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=MFWk79UtiLDYhG0RyoM+tebM2FBu7ZNLz9CL6tvOcac=; b=juQ+7xMTtFvOtnovZ42PANBKg7j3bfXnFafBIHJWvj6DJPiuIZQVmokVBjkZ68VSrP d6sOjZXWi3LJwjWI/FrudW19XV631GLJYmy2fUUW7RP5UDS7sT6CULN/koRsK25ADnzh IEl4M4/YsTs8Zrs0xMkF46DNiTP67S9g2PzgsXqoWEOZTAaGH2E3jl85zrNgrgOwaip8 JAQJLvfvcmxl2CR5XQWsXLxvbOyKd5d6MkBNNdQgBz5ZDVZa7syeqeGOVw987G/rxPXy VyuYHM/PdEnQrwytlaa3JL3VHCTr4+hbgZXJt8skd2NOHgaT1ASX44ouf5pCeyjPmOqq 6lWw== X-Received: by 10.180.91.79 with SMTP id cc15mr17912655wib.37.1425216862420; Sun, 01 Mar 2015 05:34:22 -0800 (PST) Received: from ketas-laptop.mydomain (65-38-190-90.dyn.estpak.ee. [90.190.38.65]) by mx.google.com with ESMTPSA id hs7sm11555907wib.4.2015.03.01.05.34.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Mar 2015 05:34:21 -0800 (PST) Sender: Sulev-Madis Silber Message-ID: <54F31510.7050607@hot.ee> Date: Sun, 01 Mar 2015 15:33:04 +0200 From: "Sulev-Madis Silber (ketas)" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd-current Subject: Massive libxo-zation that breaks everything X-TagToolbar-Keys: D20150301153303381 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 13:34:24 -0000 Hello. 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. 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. 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. Then, maybe later, df/w/netstat/... could be updated to this new layer/library. Or maybe this should be just left as it is. That would mean having two netstat's in system, which could be both good (separation) and bad (maintaining). 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. 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. Thanks.