Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69412C433F5 for ; Mon, 27 Dec 2021 19:11:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231181AbhL0TLd (ORCPT ); Mon, 27 Dec 2021 14:11:33 -0500 Received: from sin.source.kernel.org ([145.40.73.55]:50802 "EHLO sin.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230163AbhL0TLd (ORCPT ); Mon, 27 Dec 2021 14:11:33 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 32984CE1065 for ; Mon, 27 Dec 2021 19:11:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BFBFC36AE7; Mon, 27 Dec 2021 19:11:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640632290; bh=zXOYbYGlzDNotG2YQB59TaNjYT+bb5FQC3QnLs+3xBw=; h=From:To:Cc:Subject:Date:From; b=QCESu9E7JN/NotSqb5hG0Xw4AGV5l9i6V1UDrkes+u+1a8/X498EpXOtN5FUe87vK Cj+Ls6uS0086U3kq6wtW+2lt5q0fytF9VMoA4gbs69oZVUTedy4sae+G2cd5SNhwbv CIPwjR7/7IXlEZCwl1bL6Fp5D/ZzoP2/UVeVvF4RmQcmfpVe20+dbyy8o22iBSJ3WI XV2MtG5HDUlmydOKKUtspLNXedIURscHxAfysIEy598GOwgg/+W/sqLp+vlb3n+iz2 YRZp1824O0sSM/0PySP2qus+dni8l9t9ChhhZx/wyLrHe/UJBejbzipB3fWLQXBBM0 HZd9IJw1kSA/A== From: trondmy@kernel.org To: Anna Schumaker Cc: linux-nfs@vger.kernel.org Subject: [PATCH v2 0/8] Support btime and other NFSv4 specific attributes Date: Mon, 27 Dec 2021 14:04:56 -0500 Message-Id: <20211227190504.309612-1-trondmy@kernel.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust NFSv4 has support for a number of extra attributes that are of interest to Samba when it is used to re-export a filesystem to Windows clients. Aside from the btime, which is of interest in statx(), Windows clients have an interest in determining the status of the 'hidden', and 'system' flags. Backup programs want to read the 'archive' flags and the 'time backup' attribute. Finally, the 'offline' flag can tell whether or not a file needs to be staged by an HSM system before it can be read or written to. The patch series also adds an ioctl() to allow userspace retrieval and setting of these attributes where appropriate. It also adds an ioctl() to allow retrieval of the raw NFSv4 ACCESS information, to allow more fine grained determination of the user's access rights to a file or directory. All of this information is of use for Samba. - v2: Rebase on top of Anna's linux-next Anne Marie Merritt (3): nfs: Add timecreate to nfs inode nfs: Add 'archive', 'hidden' and 'system' fields to nfs inode nfs: Add 'time backup' to nfs inode Richard Sharpe (1): NFS: Support statx_get and statx_set ioctls Trond Myklebust (4): NFS: Expand the type of nfs_fattr->valid NFS: Return the file btime in the statx results when appropriate NFSv4: Support the offline bit NFSv4: Add an ioctl to allow retrieval of the NFS raw ACCESS mask fs/nfs/dir.c | 71 ++--- fs/nfs/getroot.c | 3 +- fs/nfs/inode.c | 147 +++++++++- fs/nfs/internal.h | 10 + fs/nfs/nfs3proc.c | 1 + fs/nfs/nfs4_fs.h | 31 +++ fs/nfs/nfs4file.c | 550 ++++++++++++++++++++++++++++++++++++++ fs/nfs/nfs4proc.c | 175 +++++++++++- fs/nfs/nfs4trace.h | 8 +- fs/nfs/nfs4xdr.c | 240 +++++++++++++++-- fs/nfs/nfstrace.c | 5 + fs/nfs/nfstrace.h | 9 +- fs/nfs/proc.c | 1 + include/linux/nfs4.h | 1 + include/linux/nfs_fs.h | 15 ++ include/linux/nfs_fs_sb.h | 2 +- include/linux/nfs_xdr.h | 80 ++++-- include/uapi/linux/nfs.h | 101 +++++++ 18 files changed, 1355 insertions(+), 95 deletions(-) -- 2.33.1