Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3973779pxf; Mon, 29 Mar 2021 17:20:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5Nj/zAg4ZDrB5QgS8SrwMu4ZKDJNzs5ZDNxE/cemx9X+fAMNhpgOZC+ENgCPfm7g9kOKn X-Received: by 2002:a05:6402:42d1:: with SMTP id i17mr30076325edc.131.1617063619567; Mon, 29 Mar 2021 17:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617063619; cv=none; d=google.com; s=arc-20160816; b=Rx4oPKgdxetXWd89Y1rhI2swyc6kZGAtQJXA4HBb5+3O4gkCmrujHgRAia51BoXk+g XQuWZEUJomc6CXW2GmQURFC9oFkFU9IjU2uCivVfirOjvIfjJ9ejBEGKJ5iePkpOoHdt vqgZasi1OICtkbD7kOz5+KpE5LGrlY0ZYFR3GWnsRVKWfhxIrnjah3Sf6UX7PUu1jRpT 5c2akLXp5sQxouoZdEbE+lh+q7npSJpuMvRIH+k9xcCJAQ4ZJmcwJNB5O4Gr0HE8ncIt AGEAoFZJfmtrNuU7RpFt4CJJaskWnpCnN28tt7Y8h6bMuVU+Hv2j8GG7dqzT4Iw3qViW NPug== 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=tMhSUoNPv0gIrH4cvfV6962rYnwcsMpS71Lmr5aSU2o=; b=aDwDEfE24wdpFM8Dg6lQYPHFxHqaLGW4QORTOhjjeptf4pHhV5HQXo0EzJfRkNbNq9 0ikH/cup+UjhiozI5Z1Uo27a2obOvlzvOujVH3DEAHI1fJm0QfjIUFSoFnTp3EypD+oL 5xVA8gNNrWO/PRziylosIwkUxxywBm7+TMIobPfs0l26+9jpAhq3e+UnB/hrR74lkKQa pu3VsEMPr7jep5YHtT62If1ArXW0DQ/6ZSOsBauASXJLWl0uaMJMlWIKns3OHTzZNFMq b8UQxoZ8krpHwrk9YMo1TkTbz/RBpwnf2TpsDcAoPbAsHqvj+4/ldQBdr/XU7oxpsrNU 7eBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MxwYrWFG; 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 o13si14873861ejb.114.2021.03.29.17.19.56; Mon, 29 Mar 2021 17:20:19 -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=MxwYrWFG; 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 S229630AbhC3ATM (ORCPT + 99 others); Mon, 29 Mar 2021 20:19:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:50360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbhC3ASk (ORCPT ); Mon, 29 Mar 2021 20:18:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 935A661996 for ; Tue, 30 Mar 2021 00:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617063519; bh=sKgXKWMaferrfB6lSm0CMcZnwhLSUOM7E2zrhQfQOmY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MxwYrWFGb6KczU6raDG3S/HaPz7p4GJ/FTeBtVECVLI9wIvaf+pZx3OwglcbBs6jC ulugLQB1b9DkERcBs6NMYa8zXejKJydp+kszZ4bW7k+3Yxjrjv54QFIUzhEqIqSAu6 XFRD5R5F9c1tcT70IorbuFnKNwVWK5NANBj9gntx+C6ZUiZj3ZKvCpud+FwIuXZ+pg c7AMgGwNWccWeIIh9whY+h1OYY+NPIyGc4ClfvQfYE6kj+hnhe+IuhDZC9ara35Afs gGbVLVSsm8w8EVAPQf00oOsopVHxBKBweZR5PvC9djOSghINSsoEBn4VNJvXfwzhHo Qp6cGln/5VC2Q== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH 03/17] NFS: Mask out unsupported attributes in nfs_getattr() Date: Mon, 29 Mar 2021 20:18:21 -0400 Message-Id: <20210330001835.41914-4-trondmy@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210330001835.41914-3-trondmy@kernel.org> References: <20210330001835.41914-1-trondmy@kernel.org> <20210330001835.41914-2-trondmy@kernel.org> <20210330001835.41914-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..93f487c15663 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