From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796047829; b=CKgAr6iEnEY+eGLXQkVQdNPeeRF16axBJZem/OgYPMixRJXDSsUH5TStU5uxkWXeM7o0 nxDmW8c85PLlhcyu5CdZCXLQ454dho3Mz4yJofORC/0PFJGzEQvIpjBGpbwUjh5eYUH0k xKVgKcn7GQLy32rP104tXO+ns8c2oL8cyvEn6ny2Ixyou2BFxb62cq9FV1pfnTz/Itwht torctfXdZmOGzlSAnEQoVe+E1B/XFB0Sku1YB0CKaS/wSkO+kqBj1eEwcYXGv4xOz2+rm U0ix62NM7W3+tKzChtHKex8cCv7VJrrH7Bg/g1JYDhICf8lX5UaTHZgltnzlLpGQf4w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047829; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To:X-Mailer: References:In-Reply-To; bh=/UV+OQF5bl6qGUoRDKrt6hQOnPRDL6xgV9CLwhv/ZFU=; b=BiOCOO4ALQQKkAEpZWxdaCkNYHpecZeRMXvnCwqy/de4lOW7hG306vcvPlQ1Grf2obLc lsqqCoPBCqM2Y0XA3hEZ1FCHqTxe1trWDZbmVjBQy4YaYnyA2sR68lTifhIK7HDfLPAH4 3KDIjDiB0N2nf0Tdm+8BZI/EmgOHn1+cZ4T0OIEpg2PErG4q11VX7WL9ZrIXX1mdHuikQ V78wASqHJXLVWznAfAXmiuFSx0jSwZ388g27ijao4HxjA2x7HF/vwGNx2icJXFVGCHAo8 t5F6K0wbnhRctIuiX6P4VPSWdOSxXD46n8ibQLNCkbjZcSAiA1xCMCFyF/s+GTJK/WQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ayuPNHVi; arc=none smtp.remote-ip=209.85.128.44 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 906DF606A681 for ; Mon, 30 Nov 2026 14:10:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 906DF606A681 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ayuPNHVi Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4a2153c8525so85804415e9.3 for ; Mon, 30 Nov 2026 06:10:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796047828; x=1796652628; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:mime-version:from:to:cc:subject:date:message-id :reply-to:content-type; bh=/UV+OQF5bl6qGUoRDKrt6hQOnPRDL6xgV9CLwhv/ZFU=; b=ayuPNHViY77iGy+bbqG8xD/QsnQPEsdaYUb1FIu3tcK0uBNubSgW8mPLY0qQ6sPVle jIwKsTq21T7uOsrt2D3tYqt+082tfelFVhA/eeEtb5PK4YhO/MZXpNXPdxMrFGzL2jze OtrK1V366SY96wlcMfBwFNzcV0+rkk2AM3ThPpmAgSKlLMelqFiG6ETvcdjuIPUA4NEH jQCwZgbGPRC6/YoOHtkatELJY+PMReFw6Y75TLDjgLvzRLZcb5DmtLV6t2eV4b6mQy73 CC+39lXUYgm/WSpojlBDDZd7+XZCafrWvlsyRH2W59jumwG978Rj6q7TAIdZFjz2ri2K 2b/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796047828; x=1796652628; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:mime-version:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=/UV+OQF5bl6qGUoRDKrt6hQOnPRDL6xgV9CLwhv/ZFU=; b=B5JJ3x+KghpaHWnSX3bFAbmWU/XLnIWaqWi9no2ZnHoKPELhPWT9LLUKKXJRo59QyG tFHxE/s1R5jnRHblEXqToYg02oZCMfmE3MqC2QJVo6cn/Qd764j+wW84fxPY58TjYMdm j9V+47z3Rymtd3I3lfG4pUzAuqFr3D6VRETLV3HJ6kIy/7un8x2xfgaKoyWolhxvsy/U la9toEyfEpiSsWA5TUY+93jHRvQpEOmmxoLcPzfNYHFeH7V9P7MXRA5JWjKqqL7gSvD9 YPpSkvDi8V4vIpBcTOtLtKLqHViF/ZQdJ3M2rQHeP7C9AaHU9dxExs/t3MVPNEnFU/w9 41XA== X-Forwarded-Encrypted: i=1; AL+hErE1j5f0t7Q4wrM+bfePDfViWXN3Fi8x6hHq4/4FFLUzjQeGKje5EQN3LPwzKxG6JUvzLCzwITwXcT3t/Q==@vger.kernel.org X-Gm-Message-State: APuU4Z/NG+CrqwG3RWe9FYG5kRBX+lN+BPkTbRFkQ2TIb8d0X79nP54l hVk9mVyfdgzV3tEcCMP0AaJglAF776q/tJRHCD5kcNyhVFH2DZTwbSHC X-Gm-Gg: AZFdTZcPzdU6/RaM+x1AeqVVQQVgdLUGPPPqLLhs7QZ8J7XcsJwPhbeWZSva8mS/wCo Q1wxrp7+4WWOcQpmD2FcHceOgAVEMc4OR1qytFp32oGcZBg6VM8wor/SuwxSHSuRVsN35F9vKxH r+BrEU6AkZ5oh/GFXDimLd2y0fTxH4SyCGNQ2UADTUDH4f9Pzvh5/oFJa4/b1Ei4Se95spfjoZU B/2RdsLaw/uDk0CL8H0vP8GETp9UVh8ibLyK0WB1yX5CTLT0SyUjeTSNsv0H2kkLXGBH4cyQ2lg 8iWO7R7P58gQzSayJjohiSm/EvfwezHmJlrZ2EzVtgyLxOa5EL9ZKHlRd6Wnn4uEPp3yGuSVFlR XBJSAcB9NVDEURkD7oEsMkTRkLgcE4681faYXxohUdtBAKZfuy+SMDHOn5YLabfXWS3ddvYtsaF nn2vPq04b7yIGWItxR8ZYw7MgXOQgdTFlX+UE/W64biJCDy8fMkJkipaUNf7PGj//bcxGj2Z2YN Bs2jhIqDE49vwIe3y+GzLq5cRxjmHyk87ZH1hhpdJVfZTZ7drnLi8BuOngT62BlWKxaqQFY+qdp 4QWd7+0Uon/n2sgnaYLqa/mTqg== X-Received: by 2002:a05:600c:4e02:b0:4bb:5d39:95fa with SMTP id 5b1f17b1804b1-4bb88811c82mr640811685e9.12.1796047827717; Mon, 30 Nov 2026 06:10:27 -0800 (PST) Received: from localhost ([2001:b07:5d26:7a6a:365a:60ff:fe0d:cfc6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6b8b7888sm64856455f8f.42.2026.11.30.06.10.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 06:10:27 -0800 (PST) X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Type: multipart/signed; boundary=40e550140d2796a40bf64b7eaf0271d142da0b3f91106c73716195513c34; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Mon, 30 Nov 2026 15:10:22 +0100 Message-Id: Cc: "Namjae Jeon" , "Hyunchul Lee" , "Jonathan Corbet" , "Eric Biggers" , "Theodore Y . Ts'o" , "Jaegeuk Kim" , "Alexander Viro" , "Christian Brauner" , "Shuah Khan" , "Randy Dunlap" , "Chuck Lever" , "Jeff Layton" , "Jan Kara" , "Alexander Aring" , "Darrick J . Wong" , "Andrey Albershteyn" , "Amir Goldstein" , "Miklos Szeredi" , =?utf-8?q?Pali_Roh=C3=A1r?= , "Lauri Gates" , "Christoph Hellwig" , "Dave Chinner" , , , , , , , , , Subject: Re: [PATCH v3 5/5] docs: add fileattr API documentation From: "koraynilay" To: "Andrey Albershteyn" , "koraynilay" X-Mailer: aerc 0.22.0-0-gc2f86b7abde3 References: <20261129024233.2361718-1-koray.fra@gmail.com> <20261129024233.2361718-6-koray.fra@gmail.com> In-Reply-To: --40e550140d2796a40bf64b7eaf0271d142da0b3f91106c73716195513c34 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Mon Nov 30, 2026 at 2:33 PM CET, Andrey Albershteyn wrote: > On 2026-11-29 03:42:33, koraynilay wrote: >> Add documentation for the fileattr API. >>=20 >> Signed-off-by: koraynilay >> --- >> Documentation/filesystems/fileattr.rst | 530 +++++++++++++++++++++++++ >> Documentation/filesystems/index.rst | 1 + >> Documentation/filesystems/vfs.rst | 19 +- >> include/uapi/linux/fs.h | 28 +- >> 4 files changed, 568 insertions(+), 10 deletions(-) >> create mode 100644 Documentation/filesystems/fileattr.rst >>=20 >> diff --git a/Documentation/filesystems/fileattr.rst b/Documentation/file= systems/fileattr.rst >> new file mode 100644 >> index 000000000000..9e3515dc4517 >> --- /dev/null >> +++ b/Documentation/filesystems/fileattr.rst >> @@ -0,0 +1,530 @@ >> +.. SPDX-License-Identifier: GPL-2.0 >> + >> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> +Fileattr API >> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> + >> +Overview >> +=3D=3D=3D=3D=3D=3D=3D=3D >> + >> +The fileattr API provides a modern way (instead of the older >> +``FS_IOC_[GS]ETFLAGS`` and ``FS_IOC_FS[GS]ETXATTR`` ioctls) to query an= d modify inode >> +flags (like immutable and append-only). > > Note, there're man-pages for file_getattr()/file_setattr() merged > for a next release [1] and [2]. The `struct file_attr` man page is > already merged in 6.20 [3]. Ah yes thanks, I was indeed modifying those files to add the masks. (But I'll probably finish those after having the actual code and doc finished) > I think it worth referencing these and maybe focus this doc more on > internals? Yes, I'll update the doc to reference these. Should I keep the doc with only stuff that isn't/won't be in the manpages or have *some* things duplicated? Thanks, koraynilay > 1: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/?id= =3Df73700438c6cdbe80a28619dbc3f41708e339247 > 2: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/?id= =3De5a0a8c70331002298f070920e18ee0ffbcdad32 > 3: https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/?id= =3D8afa46e2ada9331c44d91026f1214b8ad4c1cfaf --40e550140d2796a40bf64b7eaf0271d142da0b3f91106c73716195513c34 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSgVimKafU5DQMcjcDmj22qf5IGXAUCaw2DzgAKCRDmj22qf5IG XPkKAQCcjdasfVEIB4YKnWlcoM315VQODERaJHEjPQkkB8ZEnQD/XtOjeyiq/+XB 6HfbsLKfJybMfcGcOb0wAQEWdqTx+QE= =98qi -----END PGP SIGNATURE----- --40e550140d2796a40bf64b7eaf0271d142da0b3f91106c73716195513c34--