From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796339238; b=FBbyg8GSlVlxzySnkCjFPXWiH8KXuKfzsI0AWbcPfYdvcAn+8P0ebDi7YolbpfGdsSSr tDJF8W9I4VCQdF38v52uq2CnDZrYF49i0em4aVMeIIz8tDmwiUDr2JxUBRC0JuquAiJiN mk/rOY5aKHTZLoYtzCpFypdGvZepWRfV4uzf+P2whJe/KEHUoLeL9tP54V8f30fBTEC9M ZukiRLTZwTsZ0mDgEleVxBHXhQtRkGbQi37fnovcFFXfSwPEhN9u7R/NjwXAAcglTUewW bM1rnOi+wELjZayfTQRPOb6JZgbf/ifwBO5NCJ4wNA+KU3Mi+9XQHURrXZ+l3swPa5A== 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=Srw8Ct/uB49BOVqvcJ9usVxCNW98vTm/v/o10j7NKDn+rKJa25BXOLfbColJLvX7hKn6 W3l5EBxFfIpzn136Ib8wxmHusHlJRYzOudZrEJmcCXHuPvjPFkD162mlchASgK+xCvsMm RhaE8t+1hL77Hcmo0xparSW+zHkDLyhDCuPgpN6RuQR2Ki01wKoeKwr37u0Jhd58ddiHo kBRUQENhwieegWYPAvJE8rYj4l9nDuJ5P1wQD3VCMlRqyw09WPFT82/uM8JYs4rtahvFy Tw9GGBHh3YdR3klHxJL5lb6h/mkq0N0kcbVwL/ehRclCss2tH25/jxQVzwUY5Nofitg== 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.54 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 08146606A32D for ; Thu, 3 Dec 2026 23:07:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 08146606A32D 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-f54.google.com with SMTP id 5b1f17b1804b1-4bb6886d30aso2861785e9.3 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=IKfGW9GVCGIy6sceSdDeWH+8Vv+RgKDTBT4GWbrfMyVvRMrwm0HeyKctee+cQ/7CJS NvvwgLKWWpGlgSD8CUJQsdLlYJsOAoNUhkMFV9fOLcH8Tr/tO66nkXNmMzpF73TprWrg zEtssPjaXHN6+0lZxfxmp++vJTU7seNcQp0XdJ94YmEbyvy09jimW4UZGJGbWM7VSEKR jqlGvj3Bel/Oz0whHkPK4BmdFvEJGnVwS1Rkerspabdx9Wf8bnUOOZDOJBpPsSbdE4jr daKNbV/s2nW3Le1vRPByIe+oUZYDjsDwwxB4X4MMZdPPJqvgVlyW5o3n4dM0CpGVG6xF 3CFQ== X-Forwarded-Encrypted: i=1; AL+hErHlpZ+H+N/3SthJzk5uREBFnuT7RYFZBAPtq0+rJ7vukuHCDHIpZRe5xM6KDTezNxb5yxHRxXcoAxIsUsKy@vger.kernel.org X-Gm-Message-State: APuU4Z8J794w632mTpcD76xPElkU9y0USkEcbw+R2q6KRrM91w8hGfxA RWciuTZW790ctidRbQm1UTDsrQCuoSZfzMfeaeR2yG627rXTfmqlnGHt X-Gm-Gg: AZFdTZdxuGEJnRiS0eXvgIzLUvuqtPGwhIGiqh4bXlfDJKqcVzUCr6WV2NGeM7m8G6C FOmhercGZA699B6lk/Ht3n4UzMf7TOkSNXVqysTj9qO59uc6rDsMTgB96DZwr8WLUfgVZb5IJmI /FWpNAWumttizayDs5vlkqjhDgtaIt/WOnKVy5TAMeRNQffBGJBg8WYIs63VQG1b5huExXNrlYU tpKqfKf4CO6D+d2BhhPtIQa8Ef+8dS4dULEe4qgnEuuhxbfdcrq9ldMOo+nya0MSEpni0UZ6tbQ tMcbieXsao7TyWkJCN6h8YIRcO8K3u/QADCd08zaR/K/MsYJbwsc/2HT1UBWH2MrrBCOPicpqug +G9r/amjQXk18DHqW2ZJF9lv8WRs/VY8PPraJxVgIcyzsdrs7ok7OE5ZLtjznpuWger5dNAXQy/ zo8QK5XYJB+VhsxzOtXDm3SfOem3r8Bc5KKYtakGTuDtXoj4cCW6Cr73yJ22Z4zJj1YGw7nvZ0I zgVdTBUTmGSvIken/Xpe2f8FcZ2QnnFKMePU+czYjHW2ozVP+L+KrdHpRHmqsuaaFRHy0pXt6DV +A2U7jlwze+t0bSD8BM++iOk1Q== 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-fsdevel@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--