Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp588271rdg; Tue, 10 Oct 2023 22:16:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPtVUsNeo/RGUwv3J5wtCkpvFw6t3E60imA87/kGX/48/DLvyBPyzLFoFztSnVclkku4DM X-Received: by 2002:a05:6a21:a59d:b0:153:73ec:fe70 with SMTP id gd29-20020a056a21a59d00b0015373ecfe70mr22483078pzc.13.1697001384612; Tue, 10 Oct 2023 22:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697001384; cv=none; d=google.com; s=arc-20160816; b=UQqZqVwDSk+/fsMLPliHjdPmrIkWVF5xdD33TnfFqkiIW990IIiRWd8QrsOp4/JRe/ RRiG71cSLIypzYfPrOwhQKGitgqhxgSH3J9A6hKYNSVN2oVCUMRpdbnPIfHLzR6ujhGL tvdAhtohEk9TYwdXKe/wJdM5aRZXSmjvALmiCPQdl4JXsaNx8cMuJ9ZCqAfrNNWoqSKT cKSzP40LU4tmaglngkdFt+Wm55MBYfWoSVRjXt90VBwcla1S/0xavW66iPAkJykbHuH0 WKR9HXsBEa2+bcS02repGhDXCH1JACoP8fIO5F5JpHZgodpbHGJvzS9c7Di2/RqIU2Xl IOjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=LL7tWXUl7A3RdvdqOHiqksj0Bp6yAXgIslcHvnRez98=; fh=a34eu72gbxH/s+HaSzGGNYvG7vjnazyS57/a3xcYRNU=; b=k9aeiGjDqigrXiCJY5Zg+3K/xtzXdiww4xtVudHI43ZqsX3XCLPT6UXygboIRTxtni 0JYckXMHiZz1cbd83Y1CFlwNTL5SQ27HxpCFI2RStNE6IL5b9i8BFuzT9TEQjKcZ4TLX Ad8oj4gTqBXc0h3L3iFsLbnOVuugB/dWwWZKwEDZHH0yKlz0BaGIoIB1CwgjFeN2+ioE xjoxV/QSWofzWHVaNQ+h5eaGTkgvOJVxQtPbfAmXC685PAS3gV11znX2ui6P7ykyzGw+ HjuHZI0+gv9XLNAem+ZiS1OMcYAHONw6fr8ng3CY1qMWq3uyztOvyqJ347QQvPXuhDNB ExFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=iZc+FzWR; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=5GW+ZeT8; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i3-20020a17090a2a0300b0027ce0950874si3531807pjd.127.2023.10.10.22.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 22:16:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=iZc+FzWR; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=5GW+ZeT8; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3296C8025B49; Tue, 10 Oct 2023 22:16:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbjJKFQT (ORCPT + 99 others); Wed, 11 Oct 2023 01:16:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbjJKFQS (ORCPT ); Wed, 11 Oct 2023 01:16:18 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF6F698 for ; Tue, 10 Oct 2023 22:16:16 -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 6D22421847; Wed, 11 Oct 2023 05:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1697001375; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LL7tWXUl7A3RdvdqOHiqksj0Bp6yAXgIslcHvnRez98=; b=iZc+FzWRu9jEM2SVav498qBP4q28g2d5sKfhHk0csAEr9GTHvz1891MJV0GlZTroKqxnv/ 14Jwty3pHt3TpwsxxoSUqIpsRqVcJ4nBuY29ifvY4oRR6Zm8m5n2WMyhgZqcCm8xkbTM+2 sDe7eQCsMt/XOHYWLEzR2SSnUOuojuo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1697001375; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LL7tWXUl7A3RdvdqOHiqksj0Bp6yAXgIslcHvnRez98=; b=5GW+ZeT81ahjpSc6qR0EMZfrbuKFn64rhQ9c0FSlm8doWcil5Q1XE8TUwX7RqOLpiP5evl HWspVRgToZkkJCBQ== 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 315BB13586; Wed, 11 Oct 2023 05:16:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 4zOONZ0vJmWCQgAAMHmgww (envelope-from ); Wed, 11 Oct 2023 05:16:13 +0000 From: NeilBrown To: Steve Dickson Cc: linux-nfs@vger.kernel.org, Trond Myklebust Subject: [PATCH 2/3] export: add EACCES to the list of known path_lookup_error() errors. Date: Wed, 11 Oct 2023 15:58:01 +1100 Message-ID: <20231011051131.24667-3-neilb@suse.de> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231011051131.24667-1-neilb@suse.de> References: <20231011051131.24667-1-neilb@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 10 Oct 2023 22:16:22 -0700 (PDT) X-Spam-Level: ** If a 'stat' results in EACCES (for root), then it is likely a permanent problem. One possible cause is a 'fuser' filesystem which only gives any access to the user which mounted it. So it is reasonable for EACCES to be a "path lookup error" Signed-off-by: NeilBrown --- support/export/cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/support/export/cache.c b/support/export/cache.c index e4595020f43f..5307f6c8d872 100644 --- a/support/export/cache.c +++ b/support/export/cache.c @@ -77,6 +77,7 @@ static bool path_lookup_error(int err) case ENAMETOOLONG: case ENOENT: case ENOTDIR: + case EACCES: return 1; } return 0; -- 2.42.0