From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 59E403FE7 for ; Tue, 5 Aug 2025 00:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754355003; cv=none; b=iws2CySqfODHlY4mLj4+6b5gRqqDI5lagHoM2fnnu/m2hwFdDp6qSFK0d1jkpUUX2u/enugmEo8VQ1X1b3t2nvNayvP9YCN+Z5shI4QrpCiCs6Y4qzPzPFSoAL1XcW8QpZ9u1TUzJN5CzrnuuwBlB8B9G7xR9IR2AnuMFV+hXew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754355003; c=relaxed/simple; bh=tp4LUybg21H6fyW47VZKnfnLBoQoWUkCXDoqquXpH1k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eqvaQ3aJDbg2KL0eqjzbd5KVDBcH0BZNKACLLRAkh0HK7J7hB7wmcHw5+TSReTM0og2GdfmhSz6YGKxi7HYy8iJKk+UjrNW9G7wCEbAwA94iWMWN1CExsOkduMjOKjuXlxISqZPAPJSUbHy/OJ/+g+Ochghr5FV6jckPLBYbZtM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=H3rlI24D; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="H3rlI24D" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-615398dc162so8780445a12.3 for ; Mon, 04 Aug 2025 17:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1754355000; x=1754959800; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=B7SmZnL6VRL7+bBKpNPXZ08UcqiyXXe6UNiZZAKtnzU=; b=H3rlI24D1kXwrLXSgg7mD9ozXVrEOM+fs9aOoXv/hxAhddxsREof8faZv11jtGLSEL 4cGRub/NMz2mj4j2QtMPHeGurUDcpI5yScIttSsIl6crIuw/6Fwq+hyB53TQj5RIhKIA /ZKM/XcldbTVNsKiPULdubq3fzqbAXsHlv4EeRhO94/vBGfEiTnG7ly7LoYN4nx+lf0T p+IkdkbbhM0HBnygK/sEUhbHhL7B02WsuR9wRUbmbpvpma8rrFyPPgm7zd6efWmQ0Faj xKpRFtktIPLwCJfSpvycK4fFK3siOskxk5aEmNSWQ0lexnf8TTRTxh2sGtALivLP3+CP VOmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754355000; x=1754959800; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=B7SmZnL6VRL7+bBKpNPXZ08UcqiyXXe6UNiZZAKtnzU=; b=H0KINVPakVizByzFU+/w9KXK+ZFu+taEWA2moo4JlJRE42ZS98cxOp8tUK+GhDv3MX dHQzHqRq8nAzkTRtTHVp4qRc9A4OP2ZGTwy06ZMWfV0vho1RfxFu9pxxKhSp1Lawsy4E jg7U521cn/aQfRGewyKpEHNVnAEt730D1QiWLu7ci1e/oTgVEeJvw7O022tKgjGGVuzI ykSJE8AX3qtsvx+9s9g+LemqMAnOtTySn0NlEy7ZcdH4PURhCWIuQijj4vb+ClsFDXNK UpCTsb3Fcu943kKLpZ4Hd9Nc73I5VHW5lkrkhXZfcuQW1M2IuB20kmW13Wene+WmC1mR 2j6A== X-Forwarded-Encrypted: i=1; AJvYcCUgyxu51X6SzBWDQtUPnE0VwqvdCv2vjmRn6Xkz3KC807iMaHnVneYPp6vKJQTMr00HXovxm+Blba8=@vger.kernel.org X-Gm-Message-State: AOJu0Yw1RtZGYo7usgDvgZXeKccx2d29B9R/bXV5V0B3SyefdMgDXJtr XYCShCPAaQNEWXUOvAtcrvRKU4FyhVCAIa0rcQBfbbRDfnn+AW+nrJl1Yi/ZGLFcVg== X-Gm-Gg: ASbGncvj6wMmz0ajUn3FYqxv9hUi6xCMYVsWeN1os3aDlCJlW48tD26B/asjj9VyDad aQoyclPiorpMwaUNqD+EWEVscXbS2ANcuFY7hFu+pyUrBu9nt6pEVn5DXQv7c/WgTvU2inZaqAc BJoZH88HQfoAFWaTlwDEx+SWUKpTUK4FdmT9x0ftQYO29pCOUDtxCxiwWo8wInfBN29FJ330Fgh nktVw1iMumuHC1ee9FoOYbB+Pfyzv90hhuM1K5H5V/p5RN4CrRaYin6/GP0uujwGBs/LHvfsw+p Ktyp5ESOwJ5B+qWO7efomBR3rGyLCiz0Jf48Rr4fZT1e6s1uaqj/R8ittqdLOtbOybsdXM3nmO4 jAhjs2HnDuYCbQjMVf/qOKA== X-Google-Smtp-Source: AGHT+IGIQjCeSDqY/s6JlgToDECfsuhclrMba5m8nVMsSJIXgIMv0OCDtHOftBADr/L00dAGjPOkFQ== X-Received: by 2002:a05:6402:26c9:b0:612:7439:4190 with SMTP id 4fb4d7f45d1cf-615e6ed02c7mr9869858a12.10.1754354999710; Mon, 04 Aug 2025 17:49:59 -0700 (PDT) Received: from localhost ([2a07:de40:b240:0:2ad6:ed42:2ad6:ed42]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-615a8f15fa5sm7414342a12.14.2025.08.04.17.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Aug 2025 17:49:59 -0700 (PDT) Date: Tue, 5 Aug 2025 00:49:57 +0000 From: Wei Gao To: Petr Vorel Cc: ltp@lists.linux.it, libtirpc-devel@lists.sourceforge.net, linux-nfs@vger.kernel.org, Steve Dickson , Ricardo B =?iso-8859-1?Q?=2E_Marli=E8re?= Subject: Re: [LTP] [PATCH 1/1] rpc_test.sh: Check for rpcbind remote calls support Message-ID: References: <20250804184850.313101-1-pvorel@suse.cz> 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: <20250804184850.313101-1-pvorel@suse.cz> On Mon, Aug 04, 2025 at 08:48:50PM +0200, Petr Vorel wrote: > client binaries rpc_pmap_rmtcall and tirpc_rpcb_rmtcall require rpcbind > compiled with remote calls. rpcbind has disabled remote calls by > default in 1.2.5. But this was not detectable until 1.2.8, which brought > this info in -v flag. > > Detect the support and skip on these 2 functions when disabled. > > Signed-off-by: Petr Vorel > --- > Hi, > > testcases/network/rpc/rpc-tirpc/rpc_test.sh | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/testcases/network/rpc/rpc-tirpc/rpc_test.sh b/testcases/network/rpc/rpc-tirpc/rpc_test.sh > index cadae55203..1a8cf46399 100755 > --- a/testcases/network/rpc/rpc-tirpc/rpc_test.sh > +++ b/testcases/network/rpc/rpc-tirpc/rpc_test.sh > @@ -53,6 +53,11 @@ setup() > fi > fi > > + if [ "$CLIENT" = 'rpc_pmap_rmtcall' -o "$CLIENT" = 'tirpc_rpcb_rmtcall' ] && \ > + rpcbind -v 2>/dev/null && rpcbind -v 2>&1 | grep -q 'remote calls: no'; then > + tst_brk TCONF "skip due rpcbind compiled without remote calls" > + fi Should we check rpcbind version? Since you mentioned remove call detectable until 1.2.8. > + > [ -n "$CLIENT" ] || tst_brk TBROK "client program not set" > tst_check_cmds $CLIENT $SERVER || tst_brk TCONF "LTP compiled without TI-RPC support?" > > -- > 2.50.1 > > > -- > Mailing list info: https://lists.linux.it/listinfo/ltp From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 320D7C87FCF for ; Tue, 5 Aug 2025 00:50:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1754355023; h=date : to : message-id : references : mime-version : in-reply-to : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : cc : content-type : content-transfer-encoding : sender : from; bh=oWTG4KiVr1VLAeoJDaYVm3vT83cy2Wrj7yZfWhjO5dA=; b=F/WBGqYGTVo2JTDXN1u3y1gVDOg9KPppGja6DkoIwT5lDyQyPznRF7HBKamqHT8YK5FZ5 2MLGe2bxb2UEzrNxWXmTZbo1816Az5rPgzuahEYkjbIpVe8xzcSLlKbxazpjJA+YraC7tJL +tPqJWRNbQHbfC5lxGVWaYoiwp3fdvk= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 0E1A23C7423 for ; Tue, 5 Aug 2025 02:50:23 +0200 (CEST) Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [IPv6:2001:4b78:1:20::6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 95EBC3C324A for ; Tue, 5 Aug 2025 02:50:01 +0200 (CEST) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 58C521400142 for ; Tue, 5 Aug 2025 02:50:00 +0200 (CEST) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-6157ed5dc51so8756021a12.1 for ; Mon, 04 Aug 2025 17:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1754355000; x=1754959800; darn=lists.linux.it; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=B7SmZnL6VRL7+bBKpNPXZ08UcqiyXXe6UNiZZAKtnzU=; b=Z39f3qFV9ipbiw1JsPZscmgK6BMmKfX2Llcq97d56+SoQ4RcxDNP8hk9R1juT1LJ9k gFtKr7ed0LZIiL2LAbez4O/8M8/KBXc15UfyOGMZ6SJmiLE4DMM5HN94vxwmLL+OZA3X GIYiK/1ItF7VLhq0yGx5TbOTvP9CNkI5XP9ZnzAr5ARi/ac5bPhjdF3RuoBnbZrxN8jO ewkKxj8g701gaL0QiWy+5Q1KeZmtcIzYgkcn13m+eIf+GbHvqvilFcRgMuOp31oDFw/B /HzXyWo0Lp8PEz0KR4WOCyqkY+GmmS1U2Ma80VGUsMDhZQLRmatTx16bDoeJ8dhiRZjF j+Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754355000; x=1754959800; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=B7SmZnL6VRL7+bBKpNPXZ08UcqiyXXe6UNiZZAKtnzU=; b=jkDr9mXR1lGed5YdAkAKhdPzHjCgBJVKMw4MYlIMwk8N4ebnqx1M5X4twoER3JJlQU cTACKMNDKShvOJMnAJuOA/v0zh5JZvjSb/7XHoTDIrBbqWtZxEtINpuBi/RHMzJP4qNl CcJryvF/2NID0703yzpoyr4TzN8LYRAh57Tk0FGGL9DpNv+l0N1+8eoVqXF9/ffqgwm5 deHBziRYVb4BuWLVRNculW8uQJDgQxIRcHK/rTTjLBuiJ+ju1zyYVTjAr2QcB768ScHy f7U4ZR8fIaT6e9QUeEZznh/+OvGTEKuQkt8FVodWH1wEvjTwCTfzp8RSIK+JkcwSwEeA sWFw== X-Gm-Message-State: AOJu0YwXV7xEntLi+2d89ywWdmjf2KCVwcU5vgm9v5PqoD88qiy6rTTT AF+af0auJTN/5B9t2jRIV0jiSXynx8cqui7Pgm9Z3fowl+cbkIYqRQdyH45Wy0b+y4gwoeAfFTu Iyb0= X-Gm-Gg: ASbGncvi0GBwdfX9TRlDi+nZmZglKhsH93wUzVpFIuOPziLcYRoSUhSvHt7aXh0z3No iEAtjAm5CeKm9HzEeMbNNaSCtji5IhF8DLZkKrszWDryI6xXXPxF/WkbT1KWJtjsUome4KqR2qW osYcpadb7T62DjRUGvGP4u2qSWhQhFQ1iIKAyKRgGi4/KffA9NiNr/aB8aEa+8i5/anVF5OmALC p+XfwdCBTyRlXw/afoMhdPCY0J5R6YLBtA0NS8DlZoOq1tiEgEc3azp5bPtDj0o+eirDdRoW6Va mNBhAtu1WYAP0aeFzgucjEkVdTvrvviAP9KJAouHROdYUDrBSqAkh1anYCH8PGQhkBBTR5JgOAb TsQH3t1ON2vNxenEwTcuX3w== X-Google-Smtp-Source: AGHT+IGIQjCeSDqY/s6JlgToDECfsuhclrMba5m8nVMsSJIXgIMv0OCDtHOftBADr/L00dAGjPOkFQ== X-Received: by 2002:a05:6402:26c9:b0:612:7439:4190 with SMTP id 4fb4d7f45d1cf-615e6ed02c7mr9869858a12.10.1754354999710; Mon, 04 Aug 2025 17:49:59 -0700 (PDT) Received: from localhost ([2a07:de40:b240:0:2ad6:ed42:2ad6:ed42]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-615a8f15fa5sm7414342a12.14.2025.08.04.17.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Aug 2025 17:49:59 -0700 (PDT) Date: Tue, 5 Aug 2025 00:49:57 +0000 To: Petr Vorel Message-ID: References: <20250804184850.313101-1-pvorel@suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20250804184850.313101-1-pvorel@suse.cz> X-Virus-Scanned: clamav-milter 1.0.7 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH 1/1] rpc_test.sh: Check for rpcbind remote calls support X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Wei Gao via ltp Reply-To: Wei Gao Cc: linux-nfs@vger.kernel.org, Ricardo B =?iso-8859-1?Q?=2E_Marli=E8re?= , libtirpc-devel@lists.sourceforge.net, ltp@lists.linux.it, Steve Dickson Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" On Mon, Aug 04, 2025 at 08:48:50PM +0200, Petr Vorel wrote: > client binaries rpc_pmap_rmtcall and tirpc_rpcb_rmtcall require rpcbind > compiled with remote calls. rpcbind has disabled remote calls by > default in 1.2.5. But this was not detectable until 1.2.8, which brought > this info in -v flag. > > Detect the support and skip on these 2 functions when disabled. > > Signed-off-by: Petr Vorel > --- > Hi, > > testcases/network/rpc/rpc-tirpc/rpc_test.sh | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/testcases/network/rpc/rpc-tirpc/rpc_test.sh b/testcases/network/rpc/rpc-tirpc/rpc_test.sh > index cadae55203..1a8cf46399 100755 > --- a/testcases/network/rpc/rpc-tirpc/rpc_test.sh > +++ b/testcases/network/rpc/rpc-tirpc/rpc_test.sh > @@ -53,6 +53,11 @@ setup() > fi > fi > > + if [ "$CLIENT" = 'rpc_pmap_rmtcall' -o "$CLIENT" = 'tirpc_rpcb_rmtcall' ] && \ > + rpcbind -v 2>/dev/null && rpcbind -v 2>&1 | grep -q 'remote calls: no'; then > + tst_brk TCONF "skip due rpcbind compiled without remote calls" > + fi Should we check rpcbind version? Since you mentioned remove call detectable until 1.2.8. > + > [ -n "$CLIENT" ] || tst_brk TBROK "client program not set" > tst_check_cmds $CLIENT $SERVER || tst_brk TCONF "LTP compiled without TI-RPC support?" > > -- > 2.50.1 > > > -- > Mailing list info: https://lists.linux.it/listinfo/ltp -- Mailing list info: https://lists.linux.it/listinfo/ltp