Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2041282lqg; Mon, 4 Mar 2024 10:58:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW8REVu7c4DxAiss4EnQUIIiuCOMKxtqgvL49Ceh4+5Q17niGd4Es2MulsqSCI7BRgDMxIqVHukXRAvdWWfzZ8Fu5ckdnpXJxbVTADBBQ== X-Google-Smtp-Source: AGHT+IH2c8FCOi0+TFKLjzFBeIxnnlo+0PzB5CIY2FaPffKD7RwnyoOdUEqamBpnfBgbBeFZlnCN X-Received: by 2002:a05:6512:3090:b0:513:33ad:2099 with SMTP id z16-20020a056512309000b0051333ad2099mr6563483lfd.63.1709578688541; Mon, 04 Mar 2024 10:58:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709578688; cv=pass; d=google.com; s=arc-20160816; b=LyXpyNYhMIItZJmO+XE7MoV3B4Sl74ltfZylTntxsK7yZPv42HI2j+iWgyr5myJi3n gSI/mNYbOX6luS2afEfqRgjvKyJy3Dh6NrNbRb9uzgQD/vK0db5Kj1EI5LAPVe1oAHnp 7G3zJnSWM89r+2hZgi7vXV95kALhTRJfcHh9DcL9P0fBsrEYomXwkzku14Jj2eYbNuHi VGoB6Y2xuo9+EDvo03tQBGLs4CseeJFwwQeYv58NyyI7jr1iF39uOy+usUlgMQW8O8XM xJKI6H40bv/i0igJ5JLk4gkYh6eT8YvMZzU5NkUH6KrNc1giuOaf0qnl5oBfUG7w2m+b Q1mA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature :dkim-signature:dkim-signature; bh=3rxvvgvR5f8wzIGKVuJp37mK7vMjOgqGtz2jmy75+PY=; fh=PrBdataydcNOnWvP3bI5e2O01rpb0hoIfSEQs4qDwCA=; b=IJSMWYzmZn7FL6oPyau+6syFCmf3JBmsqcXeLNkhgOLXo+Un9CrPbW4cSb6CTA+c6g tCKmUoNk5lvV7McfgBks4ifHeR+buXtHSirf8+HzNPhwcGoC7PQsSPdnGpU4zICb2DRr CLHtQTuwS/lcPWwpm0LWh/s4Lz4/0YV/gwIyl9jQDCqOlCU5L2qaVrOU1GemXRupwHrR usPCo8kiVEjxW4zAyJo+oEtT+P9hWI+jqFC3El2LiuXoXJKfgTa7sArTN766A0QS1I+N WkK99SKzQfgp9SzXmzjuQ+/jbYnJKVX9DGzVDXduyneFkAntxW4GRfPXbii6+zCGdMeS TGXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Z+5q9KV+; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=RAq36iO3; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-nfs+bounces-2177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2177-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id au13-20020a170907092d00b00a44b8d5e107si2729805ejc.927.2024.03.04.10.58.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 10:58:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Z+5q9KV+; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=RAq36iO3; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-nfs+bounces-2177-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2177-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3BD231F20C1A for ; Mon, 4 Mar 2024 18:58:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E705D78697; Mon, 4 Mar 2024 18:58:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="Z+5q9KV+"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="cRGslrQE"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="RAq36iO3"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="5Ne6u/dl" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E615261683 for ; Mon, 4 Mar 2024 18:58:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709578685; cv=none; b=G5b7T+qYkxbuWyIGRjmebG2MdkjWKN2La700nPCg+MiVqNNw1cnYYRLghhCNknr3exGQNhnVaxgUMgOLcYr7nZyfdrn21H+aCa4ByXzSHXFIlnV/+nkhUOrKfgw5XjlR+9YeAJyQ2n/gzCLnrUBZO6jSiiA3VsZ3wELHATBCd7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709578685; c=relaxed/simple; bh=DXAL3XdBHnDJr84qC7VAQYHpvSegw9jOkcf6XKDRF0c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DO3x7MSDlDDn3L907aFaZnHKfCSxnjKFE5qxbRqneN8BKVnDpzhoSY87Z7MXu5MrE7rFIQ9iuCHcabL6sAt68WfSIjFrNqTNyAkZVrq1nRYlcY6tlCsMFFP7VtJNbTZmxwG0F8jQXGodaXUkN6OwI2zU3+qZQ7cRc0uD5rybnwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=Z+5q9KV+; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=cRGslrQE; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=RAq36iO3; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=5Ne6u/dl; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (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) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E9A0620212; Mon, 4 Mar 2024 18:58:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1709578682; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3rxvvgvR5f8wzIGKVuJp37mK7vMjOgqGtz2jmy75+PY=; b=Z+5q9KV+YtzMODzLBfJN/XreVymWVQx0MDxFN5fz0/AN831YhhU8XsyxRrJkudVAeHT3ub Jgm76xkNQUui6KnxywiY2vFDCq1FuWdz9ElHVifewraQK5TMsiiZrOcm+qoXWtitpA6yy3 32YEsguDYTsSkU6AJiREo1AxCDd0tJI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1709578682; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3rxvvgvR5f8wzIGKVuJp37mK7vMjOgqGtz2jmy75+PY=; b=cRGslrQENEue/S7BwuKwi2X4tzlTo2ABuUas0N2AZckGoJDexf1zuIKFLtRKKw6Hba5H+F cgHAYg0FmiM2SLDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1709578681; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3rxvvgvR5f8wzIGKVuJp37mK7vMjOgqGtz2jmy75+PY=; b=RAq36iO37oWRvcN76Sdj9vfl3xlblw3jd3ouMcFn/1cA4l0pVAlTY3QuBeXcmPYVaJ9Dpw z2952/T1VLsv0ATU4apcgglKyklatIjK+ucXbOg/1SB/yfadnd6dZ3jmQHA1HiyYZHrjgp 8SIn5Vw3dlVH2+UyRKBU35oI+27GjXM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1709578681; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3rxvvgvR5f8wzIGKVuJp37mK7vMjOgqGtz2jmy75+PY=; b=5Ne6u/dlM61MgzSpXo8617x5rYtGwTm5qCboEVR7eeNFj4GhHy6n5AWm8JzSoPQAsr8MTL M4/Sgog6rOXKVCBQ== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (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) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id B255513419; Mon, 4 Mar 2024 18:58:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id HrLlKbkZ5mWQIwAAn2gu4w (envelope-from ); Mon, 04 Mar 2024 18:58:01 +0000 Date: Mon, 4 Mar 2024 19:58:00 +0100 From: Petr Vorel To: NeilBrown Cc: Steve Dickson , linux-nfs@vger.kernel.org Subject: Re: [PATCH 4/4] rpcinfo: try connecting using abstract address. Message-ID: <20240304185800.GD3408054@pevik> Reply-To: Petr Vorel References: <20240225235628.12473-1-neilb@suse.de> <20240225235628.12473-5-neilb@suse.de> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240225235628.12473-5-neilb@suse.de> Authentication-Results: smtp-out2.suse.de; none X-Spamd-Result: default: False [0.26 / 50.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.30)[pvorel@suse.cz]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.44)[78.75%] X-Spam-Level: X-Spam-Flag: NO X-Spam-Score: 0.26 Hi Neil, Steve, ... > sun.sun_family = AF_LOCAL; > + > +#ifdef _PATH_RPCBINDSOCK_ABSTRACT > + memcpy(sun.sun_path, _PATH_RPCBINDSOCK_ABSTRACT, > + sizeof(_PATH_RPCBINDSOCK_ABSTRACT)); > + nbuf.len = SUN_LEN_A (&sun); > + nbuf.maxlen = sizeof (struct sockaddr_un); > + nbuf.buf = &sun; > + > + clnt = clnt_vc_create (sock, &nbuf, prog, vers, 0, 0); > + if (clnt) > + return clnt; > +#endif > + > strcpy (sun.sun_path, _PATH_RPCBINDSOCK); > nbuf.len = SUN_LEN (&sun); > nbuf.maxlen = sizeof (struct sockaddr_un); > nbuf.buf = &sun; > - return clnt_vc_create (sock, &nbuf, prog, vers, 0, 0); > + clnt = clnt_vc_create (sock, &nbuf, prog, vers, 0, 0); > + return clnt; nit: maybe keeping the original: return clnt_vc_create (sock, &nbuf, prog, vers, 0, 0); Otherwise LGTM. Reviewed-by: Petr Vorel Also it might be worth to remove '#if 0' part. Kind regards, Petr