From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796047829; b=UFugdWXbmctNxlVkHq25ZyDl5PyaaUgGcAMIwisbFKr+HMrusHttvvrCYG0zCWkO9Xlm m3SHEIVAKcNIpTxdJwKhwXjc6imjyJx1JENZz9vX+kzgXuijZnLN7z5k+xzhnsuG0+AB6 EZlDvBblWARbiZQY0D7v2Va4znOd8/qXfkMtNbUfFZVsTaP0ZwMElc5OJtF8eHLgWf+9t dJ5ust2YFTjYA+LENPCexozGzPz99wy1udUgNRpjjURI03X3FU+eDLWUVCCvbv99fk9An e7RYMpN61NXlNMwvL8LrkitAYEZzXS9ewO1rg/dWWnorOZ7kkUlLjkBKiVG9wvF/c9g== 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=IO/6XmfgihTnd4sTSAJ9peLS37xdniyUcwpOkOWZ2t+4ouXRPlQjHpwBWCE88YdhKaVE fjIsmzPmYtZGRnpN34lt1NLouVPvLvE3BBY3ee4smQKgR3gJGSKnOk6u+ZSVjpSlXMnKW Ikvwg582MZTY4R5sGggJsgKem0ISOLFJV656eqkxJQPMu67scgnBk8OSX+nUqESqWJvWi Gqo7oMjBofUyAvflcugqNAhWSKNqMUUWprQit1BwzODEIL5pQcUBCSAI1suZlA1KuuQz2 XYhKGgpdNbzh2oNTTiO8LTpusITVPOP6r61HHJGxySOzAgBAhSAxIGd8PkL9TSrWFlw== 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.43 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 8BEEC606A33F for ; Mon, 30 Nov 2026 14:10:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8BEEC606A33F 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-f43.google.com with SMTP id 5b1f17b1804b1-4bb72b44a97so91035565e9.0 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=ouIBgsE91BcFaZyyKd7cAgVfF2x6CGK/i1HVZtEtNud5ZZsD7qIxLrJp+ke4alsNLZ wx/DT/4wnJDsk8VhWLv65FvFR/XwmO2B8MqrhPfzxFgKomfgm8in8MxAYQLzFKxbfRNV 7RptKMF7lK6Xhfz/Iio0TWWLkPKBYaYVl8SUwhVj7obSTxU/6HkVU4smRu9GXRI7hzOR zhr8ENygj0B77HG6outFaAemWmnZrCFahgEa8yrY1LI7Hn/1B0jD/c/18yARJcJAQbGe VaSW89muv/JDH7sqSuwZnMDpJh9WVyGM4XJrhyYR1jUcdY6T8RqTZrPpIjWmg5AFRGNN ERCA== X-Forwarded-Encrypted: i=1; AL+hErHHn/BS/CkQHGAxGCzUVTSg70rX8YBuZgWZxqP6j231TD0U45ITq1mZMF60R37FoleKCT/Sy8PsouKbqfM=@vger.kernel.org X-Gm-Message-State: APuU4Z/fbmLrI94BPiUZXTz0ufh45g9iID4RfXO9HUhYV+vWmMvHJutM 7bSlP8mKnFJyhnR2GBB6tr9K6T8tHxFiH/uqw2LrTS96HjvtkuREu7fv X-Gm-Gg: AZFdTZfEs1rkuBvKkcIplKlxNYi4k+BsQwZi0c5zyvCrhytrvkbY7DSTzCkhXjeqMF1 E6twKX0llo5j24A8VnI8XEotmx3VUqIksRleE0RW6kF8do03ClXbWIcjJE6fueZX+TDxxkC9e1c SJQCs3PWnUgRGsrgNqNwT5YXyAzyn/tIiADogqvDbClrrogcPDPl5LdaR4JTGRpWU47FoOM/vDE /FgQUcZE0gwVC81qLSnH/RpSTmHw+9oROeiM4iYqcqFgoGHNwAYNjqyjITb79u7bfMBTtKaD8wu BpMjPdxlyJ02TK/nT5SaH9S01s/lZbKLlvpd3fcOO32o0VLLh1mtMts+EsITsRxNqGscPunOOMW +QTm1uZWBY5xCrqoEYmUGQGFOULQ+a0R6cd1rHgshzgEMqMl3c2ZRx6IeTowc/mQLn8WJqnwIQZ Oudx7iMrLk0MWA1FOsqdt/hp3sbiXCwRPAuyIbx+p6T/bdZ1Axa42Aqe18DChAyMlf7nGwtPq0/ 2+kgeMcrTSQVA4PRty3KTHp9ROXyZx2+3HjURj2BX4JbL1kZsJ6fEmzuyZc0HOdAhSW6KToXbB3 OAiCIjpK3z9GdeaaJskxWPBE4Q== 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-kernel@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--