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 CB475C433EF for ; Tue, 23 Nov 2021 19:27:05 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id D23C43C8E72 for ; Tue, 23 Nov 2021 20:27:02 +0100 (CET) Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 001F13C8982 for ; Tue, 23 Nov 2021 20:26:53 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-7.smtp.seeweb.it (Postfix) with ESMTPS id D969020096F for ; Tue, 23 Nov 2021 20:26:52 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 21D7C1FD29; Tue, 23 Nov 2021 19:26:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1637695612; 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=NBxXe9JMgo+6QeGTVFHx4bOgTdo8uQ46LHDHPdhHeYk=; b=GNaj227u7Gjdr4hxiUlf11XEglK9WX3xXzVbe/T1BU0o+jy43kSb3ho/uLFWL2vqR88f4G VBErZ2A5zUc4gzDV2gm0WAIwyY7FHX9JYEMncjPKptSKj3Yy6s/f3zjQzw6p2x16l1M8mF HJvIhvZexgzB09HEU5ds2lhLYfJpj2I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1637695612; 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=NBxXe9JMgo+6QeGTVFHx4bOgTdo8uQ46LHDHPdhHeYk=; b=xA8u0sQDzaF7zeR8LQ3hfVknm7ZoqLTPBsMPB3fIJdS02gnF6Y11rogyF7KQDnlF0F7U5E qT+bTpmJ1lw7s7Dg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BA4DE13E5B; Tue, 23 Nov 2021 19:26:51 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ca8qKXtAnWHYKQAAMHmgww (envelope-from ); Tue, 23 Nov 2021 19:26:51 +0000 Date: Tue, 23 Nov 2021 20:26:49 +0100 From: Petr Vorel To: Martin Doucha Message-ID: References: <20211123151537.14913-1-mdoucha@suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211123151537.14913-1-mdoucha@suse.cz> X-Virus-Scanned: clamav-milter 0.102.4 at in-7.smtp.seeweb.it X-Virus-Status: Clean Subject: Re: [LTP] [PATCH v2 1/3] nfs_lib.sh: Add nfs_get_remote_path() 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: , Reply-To: Petr Vorel Cc: ltp@lists.linux.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Hi Martin, > Sometimes it's necessary to manipulate remote NFS directory directly e.g. > to simulate external server activity. nfs_get_remote_path() will print > the remote path so that it can then be used by tst_rhost_run(). Reviewed-by: Petr Vorel Kind regards, Petr > Signed-off-by: Martin Doucha > --- > Changes since v1: None > testcases/network/nfs/nfs_stress/nfs_lib.sh | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > diff --git a/testcases/network/nfs/nfs_stress/nfs_lib.sh b/testcases/network/nfs/nfs_stress/nfs_lib.sh > index 206f11fdd..790655643 100644 > --- a/testcases/network/nfs/nfs_stress/nfs_lib.sh > +++ b/testcases/network/nfs/nfs_stress/nfs_lib.sh > @@ -52,6 +52,19 @@ get_socket_type() > done > } > +nfs_get_remote_path() > +{ > + local v > + local type=$(get_socket_type ${2:-0}) > + > + for v in $VERSION; do > + break; > + done > + > + v=${1:-$v} > + echo "$TST_TMPDIR/$v/$type" > +} > + > nfs_server_udp_enabled() > { > local config f -- Mailing list info: https://lists.linux.it/listinfo/ltp