From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796339238; b=W5rGdGWCwF7wB61PcS0pAyX7/JyYBNzy0UAKP6tLO/6AookZF9kdrB1gogula70rFriM Ced6aOLLg3PGGWc9NDWIdaW0mdlcJy2ONY19U82hxBaw2A5WgCWKDUcpjJMZrQOMGW2De hD9vC9ZOfPUr1gC6dMK6Y6/aKcII/AtlAdGoAVYQfpk96F460M6Rx5UN9AFGq64yF/ewQ MpAjwv/1ddNtiXQ4B8s9IMx/PqgMAW0JnUM6qz8GtkkvGz4X66LWk7mIZFiOi8yo/9dKf KSa0BHvxfOzNqF6d8Bg1RjQms6gjBM9Q2/zTKSqC7GkYICHH2I1XSZMAb+fLp1SrH+g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796339238; 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:From:To:Cc:Subject:X-Mailer: References:In-Reply-To; bh=FCvvo4xZynu0nsOoB9AZsaCSIwwpPXLDJDXIznnI9Yc=; b=Lb1Ytm8Q47j7q+V4zYTNJ4b0czag/kKzxxPQ6TMyKYfBhYXwOR3DN+LD775+FfWG35pX CCFtpmandzcgjfDaVsVh8zuO6fdbj5qKRItZWwniqMTQ8acCEXJ+fL9FCVJFKswvAxZRv 4NJnBMG+0sGonnL+7sDvf0bbq6f4xwIMx06qM8C+l6e377TLPkBrE64O3We3wxPzb4IE5 zLtieibnWXjHnTJhbY6qSkUQht/JdXzkzFTy2zUS0vB9LN9x7yPx9iVrIcPTV5HX81CzI Y5rwF8H5cUMSNCA+6AGNGBq95v8nWjcSoIjwObjyuM25ZUGcy89SEOEU/BFPjPaNuzg== 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=Q2cs+jx9; arc=none smtp.remote-ip=209.85.128.46 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 08A90606A330 for ; Thu, 3 Dec 2026 23:07:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 08A90606A330 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=Q2cs+jx9 Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4bba5e17cbeso3005445e9.1 for ; Thu, 03 Dec 2026 15:07:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796339236; x=1796944036; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-type:mime-version:from:to:cc:subject:date:message-id :reply-to:content-type; bh=FCvvo4xZynu0nsOoB9AZsaCSIwwpPXLDJDXIznnI9Yc=; b=Q2cs+jx9KpahwSShMiPa+Djd07zF43bJmkghapYIF6QhHEU8Igd/tnmhj6Fndj4H6X qbgXr+kjJsNqxLDW965crwVuuFU1rONLN702cBQnQTEwycA1PpJ72VieI6CtkOkgIdEY XHv+8LJzg7apkc0Y217is95ACg0J/r72mOLRJ/MlsHZ+G4KpEnPvV4fOG3LAudIXBsFB R66OMGEMfzcHNWQW6Ftc7U+zJgXhpxNpjYBGFzMNBsQ+FVEqUDlFexIKq/OfEWjFNYia XJDij7q6QZsGI9MIws1vH/iYp/V8DjDLIMAo3chY6gqWXnpjnIe7SYJrItW0AyDw/z/3 xegg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796339236; x=1796944036; h=in-reply-to:references:subject:cc:to:from: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=FCvvo4xZynu0nsOoB9AZsaCSIwwpPXLDJDXIznnI9Yc=; b=sgFz88UJYQXWaGF8SgQJmSXaL3CLkZt/SuweiJCaNZEkMdYyQaDDvS6AzHvKIz7BKz Ba6HM6J5M0U1eCeov1ZZ0Vipt5TwVg6kqioQp/6PixLf1Xpryx8ax3Jn/sjpJatt72IM tr6A0BlSMgHSDUPxFc2sZ1N0vb4IuJYVIaMUhhsqMfhVULhBxX6JqKs4HW8ymhi7wUG2 3Zy7oc07UKyo/Mw6kPAnbPRYaz88Cii2BbhIxcaU3212TXTtvc6t+FUwkwlnzZ/wSukb gg4Z91HPBBkYY4dJK7s3I2KJsx+1R7x/1M0KThmSpcU4b2jpHmu1rFWccFh/m1q44H/w K0XA== X-Forwarded-Encrypted: i=1; AL+hErHStfckuG5fPIjSP7tIeIv5QAzSvNNT2tdeEnPF4HvtPhPwYEckf2Pc3eiaRC0weT6ugL+W4yA296I=@vger.kernel.org X-Gm-Message-State: APuU4Z+GabQKW9lxmdhSccS5uyCHpa4dmOMe0FVIxDw7i1X3JWmxRR6p kiJIPgwGXfcFVZcTgcb0OxvZy0qgrBy4+7acFkNh0sGzYuVYKa92smiH X-Gm-Gg: AZFdTZfg/yb6M/JqK8pIQ01A9KzVwADzhS8VE1GBnMF74SPYCdcR34cQ9MQiK4MbURt OvXbAzdZHDClFF3dckXB3lrK0gJblxgceVT57YS8bjWANgV8CdH3DzyZzE6m0qfXQLSkHc5kb2b JYNHkcab98Bs+SCjMif+nifDzC+HV5HQ7DzcZ+WghphEhFrfrVXMqWgVPCne2SvR2HWQZAfJNPF orvRL4YDA1AZ8jgtdPhlSfceFSfI3UtB2F9oCpNmAjXMoCUnMpiQ8e4UEvcSCAJwDWdCucN2N8n q7VN4JlUzYnBB5fp72pwujL4g7M7S/SeFAt9FEiFh7xxjboVBhAxbPy2lkvFf+ifyeWCvDa6y4G 5S5t4T1vTXEX9NhAdTIJ3YBNoOfb/q94sLrFpfGK5XSo7N5NtPm3nMw0z9WQ1JgWJ40ffPpddZ5 m51BE8HsBrvSJifc5+HCnZNEoPRrgMSdEBYEttaciVgLdnzGkizqa/um4RiuQYzYksdDEg2vfOX oaLlZbVTcOcaeXyq3e46Vp7cSdV7CDyJQkrHjt99flJ4jX5NaMFBxS4nyWbbwVfkJtWQg+QRICY 7qKn+hDsbdwkKjeszJtpEbHdNQ== X-Received: by 2002:a05:600d:82f2:b0:4bb:6a5a:7834 with SMTP id 5b1f17b1804b1-4bbeb8ae149mr2439545e9.20.1796339236482; Thu, 03 Dec 2026 15:07:16 -0800 (PST) Received: from localhost ([2001:b07:5d26:7a6a:365a:60ff:fe0d:cfc6]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbea298de4sm7706825e9.1.2026.12.03.15.07.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 15:07:15 -0800 (PST) X-Mailing-List: linux-api@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=049e4ba8ee2dc3100e4361fb97c2966e971b4cd61eaa7db98b3f6687b60d; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Fri, 04 Dec 2026 00:07:14 +0100 Message-Id: From: "koraynilay" To: "koraynilay" , "Amir Goldstein" 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" , "Miklos Szeredi" , =?utf-8?q?Pali_Roh=C3=A1r?= , "Lauri Gates" , "Christoph Hellwig" , "Dave Chinner" , , , , , , , , , Subject: Re: [PATCH v4 7/7] docs: add fileattr API documentation X-Mailer: aerc 0.22.0-0-gc2f86b7abde3 References: <20261202215427.798262-1-koray.fra@gmail.com> <20261202215427.798262-8-koray.fra@gmail.com> In-Reply-To: --049e4ba8ee2dc3100e4361fb97c2966e971b4cd61eaa7db98b3f6687b60d Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Thu Dec 3, 2026 at 11:59 PM CET, koraynilay wrote: > On Thu Dec 3, 2026 at 11:52 PM CET, Amir Goldstein wrote: >> On Thu, Dec 3, 2026 at 11:20=E2=80=AFPM koraynilay = wrote: >>> >>> On Thu Dec 3, 2026 at 6:45 PM CET, Amir Goldstein wrote: >>> > On Wed, Dec 2, 2026 at 10:54=E2=80=AFPM koraynilay wrote: ... >>> >> +| | ``FS_XFLAG_FILESTREAM`` | >>> >> ++------------------------+--------------------------------+ >>> >> +| | ``FS_XFLAG_COWEXTSIZE`` | >>> >> ++------------------------+--------------------------------+ >>> >> +| | ``FS_XFLAG_CASENONPRESERVING`` | >>> >> ++------------------------+--------------------------------+ >>> >> +| | ``FS_XFLAG_PROJID`` | >>> >> ++------------------------+--------------------------------+ >>> >> +| | ``FS_XFLAG_HASATTR`` | >>> >> ++------------------------+--------------------------------+ >>> > >>> > Still very much not happy about this section. >>> > How about merging only some of it with with XFLAGS table above >>> > For example: >>> > >>> >> +| Flag Macro | Hex Value | Xflags mode | Flags= mode | Description and Constraints | >>> > ... >>> >> +| ``FS_XFLAG_CASEFOLD`` | 0x00040000 | RO | RW | Case-ins= ensitive lookups. | >>> >> ++--------------------------------+------------+--------+-----------= --------------------------------------------+ >>> >> +| ``FS_XFLAG_CASENONPRESERVING`` | 0x00080000 | RO | - | Case not= preserved in directory lookups. | >>> >> ++--------------------------------+------------+--------+-----------= --------------------------------------------+ >>> >> +| ``FS_XFLAG_PROJID`` | 0x00100000 | RW | - | Project= ID value flag (VER1). | >>> >> +| | | | Updates re= quire ``init_user_ns``. | >>> >> ++--------------------------------+------------+--------+-----------= --------------------------------------------+ >>> >> +| ``FS_XFLAG_COMPR`` | 0x00200000 | RO | RW | Compress= ed file flag. | >>> >> ++--------------------------------+------------+--------+-----------= --------------------------------------------+ >>> >> +| ``FS_XFLAG_ENCRYPT`` | 0x00400000 | RO | RO | Encrypted= file flag (fscrypt). Read-only. | >>> >> ++--------------------------------+------------+--------+-----------= --------------------------------------------+ >>> >>> Oh, yeah, the 2 columns for RO/RW are nicer and I can add a column so w= e >> >> Yes. >> >>> have "Flag Macro" "XFlag Macro" ((I really don't like "Xflag")) and hav= e >>> only 1 table instead of 2? >> >> One table, yes. >> Writing all the flags there like this and their hex values: >> >> FS_XFLAG_ENCRYPT | FS_XFLAG_ENCRYPT > (Assuming you meant FS_XFLAG_ENCRYPT | FS_ENCRYPT_FL) >> >> I think it's just silly and has no place in this doc. > > Hmm, can you check how it looks? https://koraynilay.neocities.org/vfs-mas= ks/fileattr > (don't mind the unclear writing in the note above it, I haven't read it > manually yet) Ok sorry updated the html at the link to not include the hex values, that is indeed pretty useless since it's just a matter of reading fs/uapi/linux/fs.h. Thanks, koraynilay >> If you want you can tell the story about file attributes, some can be >> access by one API, some by another and some by both the story can >> tell about the template of the FS_*_FL and FS_XFLAG_* constants etc >> and the table could be keyed by the attr name (e.g. ENCRYPT) >> and the table will say for each what it is and which API can access it >> with which mode, hence: >> >> | Attribute | xflags | flags | Description and >> Constraints | >> ... >> | ``NOCOMP`` | - | RW | .... >> +------------------------+-----+-------+--------------------------------= -----------------------+ >> | ``COMPR`` | RO | RW | Compressed file flag. >> | >> +-------------------------+-----+------+--------------------------------= -----------------------+ >> | ``ENCRYPT`` | RO | RO | Encrypted file flag (fscrypt). >> Read-only. | >> +-------------------------+-----+-----+---------------------------------= ----------------------+ > > So you mean only saying the attribute name and not the flag/xflags > macros? > > In that case, I would still keep the flag|xflag table as it is in this > patch series (so devs have a visual way to know which flags have a xflag > counterpart and which don't) > >> And then somehow also represent masked only xflags, maybe: >> >> | ``MAYSHAREEXT`` | MRO | - | Maye sharing data extends with other >> files. | >> | ``BTIME`` | MRW | - | Birth time (modifiable on >> some filesystems). | > > Yes, but IMO this could be done in the same table as in the link above, > just like all other FS_XFLAG_*. > > Thanks, > koraynilay > >> Thanks, >> Amir. --049e4ba8ee2dc3100e4361fb97c2966e971b4cd61eaa7db98b3f6687b60d Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSgVimKafU5DQMcjcDmj22qf5IGXAUCaxH2IgAKCRDmj22qf5IG XHQ+AP9iNGpq2UesCbuRsvIApVy/szFhmoLIOAQEP1ecoNMJNgD/UMw8wwhk6paW gLMd1FL5F9Bha4HU2j8EatW3M5sKkAk= =4mj5 -----END PGP SIGNATURE----- --049e4ba8ee2dc3100e4361fb97c2966e971b4cd61eaa7db98b3f6687b60d--