Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1760413ybg; Sat, 19 Oct 2019 01:57:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxYWlN4vejG6P7QcP4i8K3y6XmcwesxzKYgoxpH+e7EVEK6xB3e8odwSnYCxPn2PF6qZpY X-Received: by 2002:a17:906:b781:: with SMTP id dt1mr12469491ejb.221.1571475472886; Sat, 19 Oct 2019 01:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571475472; cv=none; d=google.com; s=arc-20160816; b=q0E1eHa9chP4/jQ7nPvXTigxNlYvoYDzCGirBz/p4MwtBeBalCVXRLga8bmembP736 O7cYck3vtMH/gCdQg84t7+7+iDNCfqf4iUcKy+btQDpyEgmzO9+kVA+5X1GuPPOaNDN3 Ikloi+trOb4E1enum9CTEOwCAPhm/DHfHPVeISRwGGHrgpBm2yJ9uWngoU3WkjzkzTWQ 2fdlPiuoKwtQIaho0QflpeftirFEUPnLoJagrugy9mkamTiHDm1DtQia8lSyOmWzy/VI 2LUrqWDRHrbJmwi8/hHm97+wEOMdAVqcVmu5vbwrO5/WrBNsEW7j2+MVaYqIH1GrrBmU mGtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NTeypUmUMaVTBUGyoYlEEodN2b8ojCnTKiuwMniqi7E=; b=isK/Ekue+F7kMP2em8vbcA3dMqaViA8GU3I5luWU/gsgrr60qwlHs1TKPCufM5K2pu p5GNRghFeovBhiZRMBvgfbG15eozscqrWY5N7tK8/OypEthBG+JdbSxlQ9DHdqbQ1jOI usLx3VdXz5Vl8bnEJ3qY8IvJyQqBWCv6lOAdxILEeyCzebvsW9XoRgLtOx27Oe27X4bk 5DHvIQfKqSZRP5DNpfz51Z4zU9yQZdqcK46O1h27UEYHuji5J55C6m/SmKdclIpTVGHY hO+WaXqXUr2eUTzgthCSzj/xYrubYgN6oRQroUW+ZGjbCN/mKqo5QoagbDWKnEExBWSg 2oqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Z0XeyDyH; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21si4621942ejc.159.2019.10.19.01.57.27; Sat, 19 Oct 2019 01:57:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Z0XeyDyH; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728833AbfJRRdr (ORCPT + 99 others); Fri, 18 Oct 2019 13:33:47 -0400 Received: from mail-il1-f194.google.com ([209.85.166.194]:36198 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502519AbfJRRdr (ORCPT ); Fri, 18 Oct 2019 13:33:47 -0400 Received: by mail-il1-f194.google.com with SMTP id z2so6269009ilb.3; Fri, 18 Oct 2019 10:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NTeypUmUMaVTBUGyoYlEEodN2b8ojCnTKiuwMniqi7E=; b=Z0XeyDyHgaQW858x0IvQ3TDySYSZ8uDxyrlPI9loOY762om8YIBcPySzgHmI8CRhFU 71UY/BFPp34Rw6IJU9DltJnAQOYxG+KpMDZgDxx3na92CBtnpZm2PZ9iI6fJK+ado2SM 0veiRmCXt8k6bTlZ2Te/TNth1iZj8foqBNzy81ABFY4dYOEk8aNbI5xqzkzbc8i0raip 27UiyET431yblW0aZ7TIxLDxzjg8tNuREeViNoiB8SBwZJ9caIOu5m8gkxJl7yIV7eat rvu7QPJxO8lKLZRJeDcOjN0Li87CYWkB2Fp8EKCieTrOaZ24VZ5GeDL6c4Q3bR/KtRDX nbnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=NTeypUmUMaVTBUGyoYlEEodN2b8ojCnTKiuwMniqi7E=; b=Ncc62gbUrVCPoNmbPFLo2O6W7jagOem42G8Y97UNT1ZY9Xx27HRcHaIay7l+jNmQC2 fTyq3jHRW2ptF6YrYXSo738G3km3DRX6KFFne2xUkrLalIJAXPLexaIwVXu1oyynSIcN ignM5TX9vPY1KJLOqvyDpxKgtgwbofNaH4X2QRPrsSvKd7WDu0ilgE5IaklRL1DcM3+G AD1Z16ySV1FIzW/qEZyCaH8QLgQQaUlq0OlYU2geuqD1RHJvQkCurkH3Y4ZGFQbNsOJZ /CM+jnerYUVwlb3Fhl2QfhfW06278Y6KfDluuHSKuu5C2cIWVtkilkO3KxdWfDrZqlEj 9fSQ== X-Gm-Message-State: APjAAAUJrSJBIS0B2IVkkvYi35Kg22MsadBNxocA4ysb5mKSKPwr9USu Ftax9xD3b4vo1PDryQu3USAP/Xn+ X-Received: by 2002:a92:475a:: with SMTP id u87mr11800289ila.26.1571420026361; Fri, 18 Oct 2019 10:33:46 -0700 (PDT) Received: from gouda.nowheycreamery.com (c-68-32-74-190.hsd1.mi.comcast.net. [68.32.74.190]) by smtp.gmail.com with ESMTPSA id m14sm2416871ild.3.2019.10.18.10.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 10:33:45 -0700 (PDT) From: schumaker.anna@gmail.com X-Google-Original-From: Anna.Schumaker@Netapp.com To: fstests@vger.kernel.org, linux-nfs@vger.kernel.org Cc: Anna.Schumaker@Netapp.com Subject: [PATCH 2/2] generic: 448 shouldn't delete $BASE_TEST_FILE if it isn't set yet Date: Fri, 18 Oct 2019 13:33:43 -0400 Message-Id: <20191018173343.303032-2-Anna.Schumaker@Netapp.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191018173343.303032-1-Anna.Schumaker@Netapp.com> References: <20191018173343.303032-1-Anna.Schumaker@Netapp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Anna Schumaker NFS v4.2 supports SEEK_DATA and SEEK_HOLE, but earlier versions do not. As a result, the test exits and runs the cleanup function without the $BASE_TEST_FILE variable set and the shell expands it to "rm -f .*", deleting all hidden files in the current directory. Signed-off-by: Anna Schumaker --- tests/generic/448 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/generic/448 b/tests/generic/448 index dada499b..d6cdebbf 100755 --- a/tests/generic/448 +++ b/tests/generic/448 @@ -17,7 +17,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _cleanup() { - rm -f $tmp.* $BASE_TEST_FILE.* + rm -f $tmp.* + [ ! -z $BASE_TEST_FILE ] && rm -f $BASE_TEST_FILE.* } # get standard environment, filters and checks -- 2.23.0