Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp37546rwr; Thu, 4 May 2023 14:28:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ693dxfN91ltTwEtd7i94pwCPz1/O1AD7gvhIFKzM1xj1FLr+CwkbeNp2cZsrnAiQHgUQ4V X-Received: by 2002:a05:6a00:1a93:b0:63b:84a4:7b0 with SMTP id e19-20020a056a001a9300b0063b84a407b0mr4455124pfv.30.1683235717887; Thu, 04 May 2023 14:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683235717; cv=none; d=google.com; s=arc-20160816; b=GUyK1giGdUiuig927z1KCczFYK/fhwb9JdkyIOKFY+2wi2LKlUJzAAoQRS911GIqfU loi9+6RPnGAYp5FSk6r2X/HqfuRN8owxWcMny9suhQqhmawuVIL8CstsgIV8uXI/jRUv 7F2vRXoK43Jkl7pQKqeBoYlH22f8ZOyD2UhuTXYC92zX6Q3kAapV0UANahquz+6ngJuY AGWza4rbsw/6NzLIBgxXDMz6gkeekJ+7eELB9vpEZFDg7KaCp1DsbMdfPFatHPoW6uZj d+F3TvhuEsckmR7ysa+/pIlRGGJId8x9VgkPQ5D0JHG2nGLDiIJmSyYFRcqUisNqGXy9 0z0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=b+s1XV4cSiudXwWR6T6pIAjl/DxHODUa6ZJRBdF70UY=; b=tW//APUsxGKznbwblkuT41KcT9VDwjNAgyzsYvHxjPtHLHIqPOCHbjrLqWsfv1TsZZ W+a4fIpEJuTn+WKcVHn+2elK04xL8FQPv7zM9agwaZ+Kcp/L0rpvjI/q7jlgcV5JSH1U BVoWrq6zemoQIy2UIZEA7e/aUf2tlke3Zn+iZBrXTzLeJbsrFxqrgjrdyprxHnIfNmwv i2xzXY5Hhn7Nb0DoVZrZddD7GcQpV3jyQGgt25CKlrVwSFMjsMuzcugF0gx7opeRfG6P X3zNTF8wkADta+6dlvvwjlFhYf04SvnbgvO7xthBvFflIe13EIS/6XAmd8jGkbPV0Ncr B4ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ytII4toP; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g65-20020a625244000000b006439d34a090si271212pfb.238.2023.05.04.14.28.17; Thu, 04 May 2023 14:28:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ytII4toP; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229651AbjEDVQk (ORCPT + 99 others); Thu, 4 May 2023 17:16:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbjEDVQj (ORCPT ); Thu, 4 May 2023 17:16:39 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E6ED11D98 for ; Thu, 4 May 2023 14:16:38 -0700 (PDT) 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-out1.suse.de (Postfix) with ESMTPS id D21B73371B; Thu, 4 May 2023 21:16:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1683234996; 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=b+s1XV4cSiudXwWR6T6pIAjl/DxHODUa6ZJRBdF70UY=; b=ytII4toP7dcPoX6zFf2MnXrtAWf2B0N3hf9/tPKEUHXhq6Xr76w25cfwUmJLWbJ8cbeNuW LGZq4iKX2zhghMYMBQap7c/lkrDU1t5vgU50O4TONfBTK74mD/vDOejGOVbNjjmpEKOuH6 /thxusxNuz2x+bhJd4tR6h9v/NGaz38= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1683234996; 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=b+s1XV4cSiudXwWR6T6pIAjl/DxHODUa6ZJRBdF70UY=; b=mBJAoPTL6NIQHMEL07CC9HbNyYYb7I27IP8lVyQKrK1SEYsEtAOMt6YuBvoylTassPlnbc i30QvyZsCtjkONBA== 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 6D30F133F7; Thu, 4 May 2023 21:16:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id FfjdF7QgVGRVOwAAMHmgww (envelope-from ); Thu, 04 May 2023 21:16:36 +0000 Date: Thu, 4 May 2023 23:16:34 +0200 From: Petr Vorel To: Cyril Hrubis Cc: ltp@lists.linux.it, NeilBrown , linux-nfs@vger.kernel.org, Jeff Layton Subject: Re: [PATCH v5 1/5] nfs_lib.sh: Cleanup local and remote directories setup Message-ID: <20230504211634.GA4244@pevik> Reply-To: Petr Vorel References: <20230504131414.3826283-1-pvorel@suse.cz> <20230504131414.3826283-2-pvorel@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Cyril, ... > > +# directory mounted by NFS client > > +get_local_dir() > > +{ > > + local v="$1" > > + local n="$2" > > + > > + echo "$TST_TMPDIR/$v/$n" > > +} > > + > > +# directory on NFS server > > +get_remote_dir() > > +{ > > + local v="$1" > > + local n="$2" > > + > > + echo "$TST_TMPDIR/$v/$n" > > +} > It's a bit puzzling why we have two identical functions with a different > name... It's a preparation for TST_ALL_FILESYSTEMS=1 where the location changes. I can squash this into that commit where it changes. Kind regards, Petr