From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796339238; b=rOZKFc/5DZMBY9WF2H4LQD8UGDlUACLGyDSjw0eQ57T1SzicK257dHr2qnT4bcXMIPSR miXqB2rGL9coRv8R7Sk414wP4KcRR/c+zZ4DYS3dvmZxskKm980PXaqzyP9eO2/Y8ilNH ZspKtD75kxr3IbtAMAXhhBVgIxD6Bz7I12QRpV3li8HS3KEjG5DkHfaz5Tn/0WhNrOdzX 3u91aTVXUTcg/3jIGlsTFOu2K8d1VHIbSWuNPWcMhxRMrk5MP97vWxeL4zRTrYtL5rbsv uYNgcRaxJ7TjMTMyecfVm+39eUhrymVRWXWjySFR3Xr9h7u1kav3+0O1ZrbvSKsxlVg== 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=24BZtefEWCdJM/7GsKNAycevCP1gc3JBcDy19awJw8/9pFPTKea9YoXtqnEntYd4R2s8 PtXt9giM++fhniqiM4VXOm8vBiu/TFqwgEnkC6CRgATkJCGtRBIGrSCznmns3509sociG w8T9Q6UPwvS5EMogsOKDm8eRfo0QUyHC4RVdHs6XS2lB2Od401Oafsg+SDb2ptTOpvuQ1 oaIRngGVKr9N6Vijo41rwjLskjSyF/QqUjkOjOOo729L60cEk8CmrikCx2kdERIYt0v3f HNftw5V4fCjtOV4Fsbg+qdAcmRwjbJt/mUpCJMNDdsE9hGACjZJnPHIaPDw8ptXSwMA== 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.41 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 0E088606A332 for ; Thu, 3 Dec 2026 23:07:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0E088606A332 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-f41.google.com with SMTP id 5b1f17b1804b1-4bb69f5b161so1848425e9.0 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=CVGyGhrzxGMTTTea7yiJgAa2qS9w+PCoXiLxjvFvWpminhKZsrV4xVfk6sSL/cmaAF nje81OC4hGTVeuFo1IneQZZ3fiWvrXGHrry9cEAbQifq4rRBAEQhfYe21OCd65xlnEwb H7DTKDOXg3nhMTfaJTgw7wGgCfLEui52wXCzVXmuPgUPag3/cVUlw+JfrV7hQ6YWFioj SH78YkSZ7e0iYnSz3QXhQx7dRZEVe4l3vUpMMKTkwNztfDxnAS/M9G+K4UsCPGJKEmzz Lj5M/r7EU/nE90eqFk2TqMl4R3YAADcVGXwynAXGNRTrmUc8IgE517Z89qU+go2E5xdv aXWw== X-Forwarded-Encrypted: i=1; AL+hErFF3HNeJY0R4LDHevJy8YNGXDR46B8eA90ow2Sl5aNVOP9RFnzJIrGZTXl+2f14jYonampHgnfjKIY=@vger.kernel.org X-Gm-Message-State: APuU4Z/zEpjZdYJ5Q1LxX7in8/c6cb2vQJiGTb/yOl0/S4zHtZk1eASD ZCTEAgwQC7VqmnUL9lZXDSXq0qHXaN+ySPUMze6QR3NCI8UzTiOcKJpJ X-Gm-Gg: AZFdTZdi2tvXC2oUMXjt/Wm09JZvz2FHYawvz9m4cmJjVzQDFtyoEamBQ6pGnbbZlZh 6icZrRKnk8tAuPYF8/2qjulS/zXn90SU77vG8D7EFa9akmJE1j7FkugvsSifxWUsO8o6QfG0O/i n5PZvLE0B0Bx7EDCPdEcSoAYNAK0BESzg4H9++RjzW3sD1j2EA9qGQWe3Tg/4VvoPHPhxJN0Czx j//bUfmrrfB10VY2xfWoN+rP+tM3hKU3OtS98V3EFlVf6iu3LrIYOJ+LdfL+k4HfeaVxbOwXmFe rt+edJBZyBIQcymM+4+OEzC96hVgCvqsDdKp7Pqy5OIVhvuh/1aUWWaFzqyOzYluJt++VOZ9BXu D7wqtdo3uakrAZIAcnFXPHofrpZSati4Xv1o+92sEJ0TPlVksB4Ie0S+4NNFwGSe7IXLZR28M75 Ai3IsLrELqy8RXutveiA76S55DGKXaRCp392IlK09OO7vFHErtvkQZoHo/ktOzSQ6rv4dF0iQae zW5mfjcRpsdbCG6EHR6DdaWw8Epp79nuw4HxJiqV1jz9O1SKKiMpr0d7YoXgrBg/UUwCujsqOuq REU7I7O1PcUB/lkxVdHYgk9yoQ== 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-nfs@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--