From nobody Fri Sep 06 18:35:12 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X0lJw45TCz5VRmR; Fri, 06 Sep 2024 18:35:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X0lJw1TL2z4Vkd; Fri, 6 Sep 2024 18:35:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725647712; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8eZ9Re560QEK2MPuQnt13omPKvywCuSUoLRvKgfg54s=; b=DXWE1GiMyqlrJe1o1lHJEgZj3Li+f4TvmBR0q1Lfj/Np1RJ+mnr4flDXPFjZbNrrK2R0+Y mk3Id7Plv+9cJiE9OcNZeeebO07UFgCCkBK5GA259PQOJSUaQ1MgcMyeBEmO18WJM5dcN/ 4+wBEQyUVmccW3uDJmcOOofDOa0kV0nacNuXlQTMo6rYgm5JNsKdJ15ZL9iWgL55dl4vtc Vk/JH1QxgSD8irjHKQveYH27ebBTi02fMVVVjq9RoPdHH3cjvTtTSAXhKstHpujN/y/Jq1 c+OOx71hg0cZqklePEtsp9apazPUkNo2By6ScofVcy145cAwLjAtPtEhdZoz5g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725647712; a=rsa-sha256; cv=none; b=OSarWXVLXlrV7ybLjCqb041HsL9oLrU/JKECeCA3G7UDUKfSfLyIS3TZL7tBgctYZQGkgp W5ixTE2ADfQsxNVFvuqSIVIw5DgBJDLpKmk6T41lqsGBiyk0aoUVJsPOUUj19fNAACHoU6 aJI7ZkqUmJgzB0sMYw/bEHY6ZE76XVBYPbuPG6YKcSWfDsQL1QwEhz4B0DsNQQpT1TAXSN bd+NHCvxQ+TBmm7SYO6eSLGhXVd8Cmt5ubm36eZN094Qq3F05wfpPHuLLPcaN7k6mnQG22 jipAH7BLYPnEVaOoaVqERKssb9JJ0Ngw743cGHFfUeKH5Iy7glfesttnQCZV9Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725647712; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8eZ9Re560QEK2MPuQnt13omPKvywCuSUoLRvKgfg54s=; b=LqIP1eAqc2kY6BWU1+EwyDrT7Z/Wyx8cSXXcExL6YhnFmVBMvGGC2yOv+dpPQ764dRqnsj mIWSnLU9oCHUpxx1es/1zRMbVSB077QWkUPkbLC00U+VBZpiBndMHZlyqhGGwZxc1oXt2X VncDZyhgO2fY0HGnetj6E8Ig6ByieE6TcNih3f27UJe0yEPMWlwcX8UajgRB4/+YCDwH5b XjJNF7qEuLfMcm092+eHHFiBj0BbNtf5CmecYFBj9pvQtQJ1YzvDBxoy7TRY4Vn5tqh5UR MTwK5K51iCNQ1r07GUuSstktDt6E2Gwi6HjUhixlha5qmMaq1jF3e/PA5dNj3A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X0lJw0pfcz12r4; Fri, 6 Sep 2024 18:35:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 486IZCjX010633; Fri, 6 Sep 2024 18:35:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 486IZCNw010630; Fri, 6 Sep 2024 18:35:12 GMT (envelope-from git) Date: Fri, 6 Sep 2024 18:35:12 GMT Message-Id: <202409061835.486IZCNw010630@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 71978fa41f2b - main - du: Add version information to libxo output List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 71978fa41f2be0ecce7cb10d30242d29d4ccd844 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=71978fa41f2be0ecce7cb10d30242d29d4ccd844 commit 71978fa41f2be0ecce7cb10d30242d29d4ccd844 Author: Bram AuthorDate: 2024-07-24 20:01:56 +0000 Commit: Warner Losh CommitDate: 2024-09-06 18:34:30 +0000 du: Add version information to libxo output Add version information to libxo output so that libxo content consumers can track changes. Reviewed by: imp, markj Pull Request: https://github.com/freebsd/freebsd-src/pull/1350 --- usr.bin/du/du.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c index 96ad7c037dfd..185a5cbe4465 100644 --- a/usr.bin/du/du.c +++ b/usr.bin/du/du.c @@ -55,6 +55,8 @@ #define UNITS_2 1 #define UNITS_SI 2 +#define DU_XO_VERSION "1" + static SLIST_HEAD(ignhead, ignentry) ignores; struct ignentry { char *mask; @@ -259,6 +261,8 @@ main(int argc, char *argv[]) if ((fts = fts_open(argv, ftsoptions, NULL)) == NULL) err(1, "fts_open"); + + xo_set_version(DU_XO_VERSION); xo_open_container("disk-usage-information"); xo_open_list("paths"); while (errno = 0, (p = fts_read(fts)) != NULL) {