From nobody Fri Sep 06 18:35:14 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 4X0lJy5GzHz5VS0s; Fri, 06 Sep 2024 18:35:14 +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 4X0lJy3XNYz4VX0; Fri, 6 Sep 2024 18:35:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725647714; 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=dmEHBlRzKFfLMZ9fQmPKo4pErqpJRzcRPUg1R+OdmzE=; b=CiQiaskEY3urPuXrXBFjjPSQEz+45odnyvhdWx2526rv6xzdSQX/2d7wN7kRjCQ6roy1VK bwTgBsAmGK9S2jKzVRqq2W4IlNlv4kDrlw3U8NKY55NBdCiJnZa8WNfdvKeIOheiZP9uqc K+cH6P1S7/UE9EJ+BOqZ4SIH/4ddCwlJ0bn19QV22Dt33WSEcgZXPdQAU0eESeJNBmvATa RPHoptzUMXl5hmQc6oBZBOKqY4sr+KOv3BXLCWzH4etVzBufNi4gY/ourxFnV9hfkK7qlg q5W4QAJl+fBeKmH+e3g6AnZgseLql1yrflGwvYaARZEZeGwcQ1rO8JDVh3y3JQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725647714; a=rsa-sha256; cv=none; b=HDG+v/qbDYT+zO1n3jywAP1SNcq0Vg/Hf/qfEPXirXEZS7x9jKreMkbk2bE4J0GZwGg8Dq taPy1t/UOQ3MkDLLI/XorejrOn5/agC9Q11zL5DkpDxacfc2+FO/+wt0AAGBtAqc2QW93A WiA/92mAyMkCPjMlq7/ndlhKP1jZu1sLoUZ5S1KX5enROLHCF3l7FhweKS0oMoydvp4/0q vmwKDDvInLgO6njipAUUUIejsDiHtBU1I69daYA4BWPFUzJX3wkXOFcanHedAtbDJIQZX+ 3NLTemeJlLuAGie0+DZ2+r94+Gd5S2t91QeoK1WXa8lCoEL71MXBUGmCNE8l5g== 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=1725647714; 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=dmEHBlRzKFfLMZ9fQmPKo4pErqpJRzcRPUg1R+OdmzE=; b=r4ecFUbgXtxIsFEoL8j0uWhTcojzFXwSA5omyYd9dAPpBtpP+/zej9wMcw0MF6jAgFZTZ2 IJ0nKXlsWtbWiplplf9sQ532qoUDxnZejdyJ34M/xjdJS1W8qNvUYXc9Nvhy/SsyZWtOUE a2q4kSKKVVr9cPq5G40DNwc5/Qe2EMghLXHvhLqCXaeMLyOvYhpG4WNgKvpP2Sw0YPPwE+ A1HwWmlQAwr2N87cDIddClSnwBnVlBwwqUXeAwiDB1bbnTP2jql3k9gFX0DAt6f8VWW+fk t2Qx9qWlu5x+kpud93IFQ2w5XXjKlSzgV7D1tkyGqM4oVxTeXIIhOQ8k0NnbIQ== 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 4X0lJy2QNLz12r5; Fri, 6 Sep 2024 18:35:14 +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 486IZECu010845; Fri, 6 Sep 2024 18:35:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 486IZEEB010842; Fri, 6 Sep 2024 18:35:14 GMT (envelope-from git) Date: Fri, 6 Sep 2024 18:35:14 GMT Message-Id: <202409061835.486IZEEB010842@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: 31ac8806885f - main - iscsictl: 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: 31ac8806885f22d6b3a3948a8f660ba0cf24e9cf Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=31ac8806885f22d6b3a3948a8f660ba0cf24e9cf commit 31ac8806885f22d6b3a3948a8f660ba0cf24e9cf Author: Bram AuthorDate: 2024-07-26 19:35:06 +0000 Commit: Warner Losh CommitDate: 2024-09-06 18:34:30 +0000 iscsictl: 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/iscsictl/iscsictl.c | 1 + usr.bin/iscsictl/iscsictl.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/usr.bin/iscsictl/iscsictl.c b/usr.bin/iscsictl/iscsictl.c index d95cb9a1c096..b75ff889a9a6 100644 --- a/usr.bin/iscsictl/iscsictl.c +++ b/usr.bin/iscsictl/iscsictl.c @@ -746,6 +746,7 @@ main(int argc, char **argv) if (argc < 0) exit(1); + xo_set_version(ISCSICTL_XO_VERSION); xo_open_container("iscsictl"); while ((ch = getopt(argc, argv, "AMRLac:d:e:i:n:p:rt:u:s:vw:")) != -1) { diff --git a/usr.bin/iscsictl/iscsictl.h b/usr.bin/iscsictl/iscsictl.h index 2ac17890bb57..3bc69e4877a9 100644 --- a/usr.bin/iscsictl/iscsictl.h +++ b/usr.bin/iscsictl/iscsictl.h @@ -38,6 +38,8 @@ #define DEFAULT_CONFIG_PATH "/etc/iscsi.conf" #define DEFAULT_IQN "iqn.1994-09.org.freebsd:" +#define ISCSICTL_XO_VERSION "1" + #define MAX_NAME_LEN 223 #define AUTH_METHOD_UNSPECIFIED 0