Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp48538pxb; Wed, 14 Apr 2021 09:08:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIIn5rtEuuLvOHjSgTaLFaq+UmroCEvBLmHkICOuIJzNnFg4oX3l2XLrW5iDnrmEmBANu4 X-Received: by 2002:a17:906:1519:: with SMTP id b25mr38196386ejd.254.1618416522732; Wed, 14 Apr 2021 09:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618416522; cv=none; d=google.com; s=arc-20160816; b=CH+LvTBmVqrW09As2kE8iUFLlG68pFpl8Z/0PIolqJnaLvqUom6tZXourVTAAupTSN 9PA+fTGLjEPcnDAUD8sipCvxDKRbk/prciisZroBzgGTUpkvnw68XEMBfDQwZLcOZUJS pF8e8mpRM+ZP14/NwHuCiqR3qE4+C+pTA6lVS7W/ekAibqPwiF6Tv7WpKoxbtIw59FDM 5rLOaSmnzFYhIPbWuixMCWK3llwAY4nmcfAl1tcJ/QfuCZceBqO3RRBeeMvJb3R4D9dI uRo16jX+2TF52oQhM05AKoFyh1hPyHcLs1xNgOJfuQzq7a+wUGB4NOL95xRCFFfxnWUX Xwfw== 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:to:from :dkim-signature; bh=/SnLVcM4k0Pw81VsfufQ9hGvCWiBNa+enU3u5XH+qfM=; b=b0LyxSaj8+Grn0u3ypnjtsEwnq+yOuZ05XhlhUcAzRTRzo2TtgaLRuqPQURqXOl0Z2 3gWMruSpB3Dm6ErWkXkn0NJUplXYmZ60f7ANMEiSOU4ELBhv9JQYBbRpGiz9a4Z/8SY7 wj5cwWDztIwMV5Eg+cSBnHzpNbQZTv8ybeVt8fL81ybmkr+nQWGn9RTf9nxbKOE/amtL 2dC4QAgfSHMAG0n1e9YJHJv3KTt+3EkRhixGPso5jhozGY742eb+YZmQAuaerZ/nMCwY WrMUa1FZZytEvFT0Js3cICFXf0JR4h3Ut0+bn5A6BLROHRZ3ZF1s7zyPAlK4fsVVg2T5 VK/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dIlyvhoO; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si7569876ejw.615.2021.04.14.09.08.20; Wed, 14 Apr 2021 09:08:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dIlyvhoO; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbhDNNof (ORCPT + 99 others); Wed, 14 Apr 2021 09:44:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:52150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351586AbhDNNoR (ORCPT ); Wed, 14 Apr 2021 09:44:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 56E03611CC for ; Wed, 14 Apr 2021 13:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618407836; bh=lakbWgi8LMZGSSz5LueXhFvQkt6vz8GjyIYagQB0XB8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dIlyvhoOz6K2+5nYbahVhJTu80YAi8Aur2wDJyP/8E1ovr92+0I4cJSpUl00Qmie4 oL45nyOnmTHrPoGkeUJCszU+SszN19P3PVEmNNgcIosKV64aK9zdB6s1yGQEDbv8jD SejJcBZ3ofoDG4y5WT38zS4Q0zq8DQ31hoSi0vI3GnlxGnWEWXVRF4Oqaft8s6TC77 2G8pySkPzUCom7SOpovbSmfOqO7s4zGgB7Se4o5AvfWNPFsg9easAcJDeEqaRCWikE p4WcSYBDgxnMxttI6J4W5H92fo3NPCbuXihP0nKLzMK9AZqCyNRfzuXnbJ6Xu64drk y4i3nXb+rcYDQ== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH v2 03/26] NFS: Mask out unsupported attributes in nfs_getattr() Date: Wed, 14 Apr 2021 09:43:30 -0400 Message-Id: <20210414134353.11860-4-trondmy@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210414134353.11860-3-trondmy@kernel.org> References: <20210414134353.11860-1-trondmy@kernel.org> <20210414134353.11860-2-trondmy@kernel.org> <20210414134353.11860-3-trondmy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust We don't currently support STATX_BTIME, so don't advertise it in the return values for nfs_getattr(). Signed-off-by: Trond Myklebust --- fs/nfs/inode.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 8de5b3b9da91..c429a5375b92 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -815,6 +815,10 @@ int nfs_getattr(struct user_namespace *mnt_userns, const struct path *path, trace_nfs_getattr_enter(inode); + request_mask &= STATX_TYPE | STATX_MODE | STATX_NLINK | STATX_UID | + STATX_GID | STATX_ATIME | STATX_MTIME | STATX_CTIME | + STATX_INO | STATX_SIZE | STATX_BLOCKS; + if ((query_flags & AT_STATX_DONT_SYNC) && !force_sync) { nfs_readdirplus_parent_cache_hit(path->dentry); goto out_no_update; -- 2.30.2