From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796342886; b=mbZZ2nsTsK2OnZzDxBPyGGML9mOLo7ETlBwuPwsOXhDsBt4P/6RWHMItKavpPPRbHU2c 6ME91OUIABakM4Fv9fjttvfQKt8vRW6VEvOKkKRJ0FFl5dGCPplmGcoOgQ6IyM7m9NO0T MABYE6qOPDJrPju/VIHlHX+R4J8ffwDE0QLWCIUBpaW4BG/aNTXgbB+Kaw7d5AWT8fMUZ wtJemJKgHNhiNBH3FvAQL5yShik9A7SxrcOJpfiZ+UpAGoZPbwQmRpU9UxhDZae5aogZK whc9aepsuT1NAv8IVadR04+GDsOp4ZOiXOa2LLCab4Rp9DzwK0yylmvzTTNwgFw6pSg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796342886; 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:To:Cc:Subject:From:X-Mailer: References:In-Reply-To; bh=xvLIQjajPr+KoOVi4xorvcXmrJtrJ9CM6fejSu22d64=; b=CPOXZrEyzFkNJ3wSjLDpkezyLEgjTVMxPGtGbf3YO6hsTjJEb1xb8WUZvRf+3cMjq07d ps2MUPAc1mxtcmV1Rpt9IBtp8RUj38F5fiwBrfui59fT56gOYWeL2ILoO3zI+jQs2anGH mYGTPOZG22KgdoB3kDOzjTbN00XbtwLWMBkGWBs3Ux+C2veZhPDs9AhWvJYyXUt9BzANZ qym2K7qTgKyUW6PftqSMFxLreRDdFsPw1cEs+UhBQeoBEq0qQmwBMJRm8qD/Xb564zgOM bav4nFthbBBRbNDP8Mh0TvJGR2k019555xXwgoxFjUDj9NQgAbyjOesbnzceN7iHtGg== 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=e8wBb3Ty; arc=none smtp.remote-ip=209.85.221.43 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.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 C2249606A333 for ; Fri, 4 Dec 2026 00:08:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C2249606A333 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=e8wBb3Ty Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-4a7b8abe209so255518f8f.0 for ; Thu, 03 Dec 2026 16:08:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796342884; x=1796947684; darn=vger.kernel.org; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-type:mime-version:from:to:cc:subject:date:message-id :reply-to:content-type; bh=xvLIQjajPr+KoOVi4xorvcXmrJtrJ9CM6fejSu22d64=; b=e8wBb3Tym3Y4sbR084I6d+nsxh1HIweWLgG21AJxIpl/s2BjcwvoGFuGMQR9rSXeY3 iNJ0d6nuj6aF9vTgxOgm61sVqharg4N/99e4+Reqq4EO8mjhf7Atpbmh0Lkx4YA7yZjH b+tDh8pjrPyq807dizUcUmMIAJKTpSn0ZBcoNtfcFU1oKpsAWrx0NZWwhdk6B0ZYhmEE jJYs7uhOCPnjMSyNIQOKDAH9MA3hAoa7/b8/BKwEKX71wpU+aoAX96yPUa71S7F7Glje VcXH87TwnNeV/zq0ms3yVYn9Ir+H3qtwfjaDQmnlCcsGv7ukdJUxO8xVSTHuA6MIrLVj BOYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796342884; x=1796947684; h=in-reply-to:references:from:subject:cc:to: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=xvLIQjajPr+KoOVi4xorvcXmrJtrJ9CM6fejSu22d64=; b=Tbliyq1SS0IpxiqK+uRYfkXl0RWGsE5rznC2Y+ytqm4z6rNCQeV4tqw7GaXWu4WM3n 5pOXtISovSHltgCKjVhoTPiPvkaEzOWTRdNYCXULJmTE1eY/NOebOxpK0KZq0DXsDPRR qMCMkrNILg90MfdYga4v19u1Cxtb+9E4vLVnXTV4fFH/IYk6c/O0l9A2ne9VDDhTZuZY 7l/7VCPRat/0TuPEYPjZquc6w9O/jcnHaaPkpo7jcG4/LwRPNsNUNjOnP0nPbO+Wv0P+ iSs3kObP8xAC2TANZpP1l+4RQKYQn+nwhliy09tBWry8g62BSVaMzJkCvUVD6Dou6DqG //fQ== X-Forwarded-Encrypted: i=1; AL+hErGqxqZ3NQH3uenv0s4AX26OLgcrZ13FVd6p61EUi2SZvuVjt0FGO4KnCQt1oFGL9pKZkSPzATFFxRQ=@vger.kernel.org X-Gm-Message-State: APuU4Z8PJUJANjMZ4JBDU6IZdba0TVOdnyVn3r8tNPvJvowKoyVTUJ+u t+qPRnysaJRb3tBivuHEnbFe3G2YGUFbU1egaszAGWDJAoTfAzN2m1BW X-Gm-Gg: AZFdTZcZTzxUnNaZooUjQVyQ1+20n1TlRp7WB7GDehuPwtHL75jQ0RiPnoCElVQ8rMN qACxl0omCpeC/LaKK8oKeBbk1dHfnxcigRdPBDh6ZGN6ppa6sYfqOadbb4T5rMz0ZY+K8g4CTHX aVy+QgYMTa4SNYRlknLjH3H7x1DfQbZX4UHf5k3nrUkAyvbcWtv/wJcuFcSAGqFWhTacu3T9Hte 6UXKICZHFo5676j4gha4rm+pbtlolYx8g/Y7LroRUSI0KtHlpymG/jt5c940PX6+eVHbHhFqulj n8HuNHNQV9gsRNGX0xFPBUJHZZUtrybQ4e+Sch8AweuSvkRknSgcizZm6RthFU2Xk58bG+ysgKD WUWFXUY8izFAw1KbKR8EK7CBHivRnQ2jO4kr8me/oopQLoyhJZO33Tu0livjoSXMrJGSKgqmlDc Rf0njoM+Xen27++3Tnk9TY6dh/ay0ENrZCHkmmKwhn3WXxY0klN/djJvSM+Ge8rl574EDveVWm2 +CKTuOWdpizRaVjKT6eVb2cuLs6xQHja7vFcfV3VQbm0TG+VOJAsL7rCO8z/K09ugFlJalhyKWT +coufqFBbaKuEv8BQkTXL5qQZA== X-Received: by 2002:a05:600c:3547:b0:4bb:7e4e:de69 with SMTP id 5b1f17b1804b1-4bbeb8bbfd7mr4138495e9.20.1796342884228; Thu, 03 Dec 2026 16:08:04 -0800 (PST) Received: from localhost ([2001:b07:5d26:7a6a:365a:60ff:fe0d:cfc6]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbea0b7f47sm9436845e9.0.2026.12.03.16.08.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 16:08:03 -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=60514c57eff70d94500c183e211aa5ada7f2155d491074df85a5d4329f9c; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Fri, 04 Dec 2026 01:07:58 +0100 Message-Id: To: "Amir Goldstein" , "koraynilay" 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 From: "koraynilay" 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: --60514c57eff70d94500c183e211aa5ada7f2155d491074df85a5d4329f9c Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Fri Dec 4, 2026 at 12:45 AM CET, Amir Goldstein wrote: > On Fri, Dec 4, 2026 at 12:37=E2=80=AFAM koraynilay = wrote: >> >> On Fri Dec 4, 2026 at 12:29 AM CET, Amir Goldstein wrote: >> > On Fri, Dec 4, 2026 at 12:07=E2=80=AFAM koraynilay wrote: >> >> >> >> 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 | Ca= se-insensitive lookups. | >> >> >>> >> ++--------------------------------+------------+--------+-----= --------------------------------------------------+ >> >> >>> >> +| ``FS_XFLAG_CASENONPRESERVING`` | 0x00080000 | RO | - | Ca= se not preserved in directory lookups. | >> >> >>> >> ++--------------------------------+------------+--------+-----= --------------------------------------------------+ >> >> >>> >> +| ``FS_XFLAG_PROJID`` | 0x00100000 | RW | - | P= roject ID value flag (VER1). | >> >> >>> >> +| | | | Upda= tes require ``init_user_ns``. | >> >> >>> >> ++--------------------------------+------------+--------+-----= --------------------------------------------------+ >> >> >>> >> +| ``FS_XFLAG_COMPR`` | 0x00200000 | RO | RW | Co= mpressed file flag. | >> >> >>> >> ++--------------------------------+------------+--------+-----= --------------------------------------------------+ >> >> >>> >> +| ``FS_XFLAG_ENCRYPT`` | 0x00400000 | RO | RO | Enc= rypted file flag (fscrypt). Read-only. | >> >> >>> >> ++--------------------------------+------------+--------+-----= --------------------------------------------------+ >> >> >>> >> >> >>> Oh, yeah, the 2 columns for RO/RW are nicer and I can add a colum= n so we >> >> >> >> >> >> Yes. >> >> >> >> >> >>> have "Flag Macro" "XFlag Macro" ((I really don't like "Xflag")) a= nd have >> >> >>> 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/v= fs-masks/fileattr >> >> > (don't mind the unclear writing in the note above it, I haven't rea= d it >> >> > manually yet) >> > >> > In my eyes it is ugly, because it looks like a page from a spec, which >> > is not what >> > this doc is about, but I can get over it if it means so much to you. >> > >> > How exactly is this: >> > >> > | ``NOCOMP`` | - | RW | .... >> > +------------------------+-----+-------+-----------------------------= --------------------------+ >> > | ``COMPR`` | RO | RW | Compressed file flag. >> > >> > Less informative than your expanded form? >> > >> > As a design/overview doc, what is missing to you when you read this? >> >> A way to see, at a glance, which flags already got converted to xflags >> and which not. >> While I like this because it's informative, thinking about it it would >> be pretty useful for the >> > Please document the rule that a filesystem should accept masks on set >> > only after all of its writable FS_*_FL flags have xflag counterparts, >> > because FS_IOC_SETFLAGS of a flag without an xflag will fail with >> > EOPNOTSUPP. Until then, use get_only_masks. >> part from the first email, so developers can see how many of their flags >> need to be converted and decide if it's worth the effort or not. >> >> This way they don't have to grep around and still not be 100% sure (or >> they just make their LLM generate a table like this). >> >> > As a design/overview doc >> Personally I don't mind if it's in this exact doc or not, but if not, >> where would we put it? >> >> (I am also totally fine with keeping 1 general table like this >> > | ``NOCOMP`` | - | RW | .... >> > +------------------------+-----+-------+-----------------------------= --------------------------+ >> > | ``COMPR`` | RO | RW | Compressed file flag. >> and have the table with only the conversions by itself (like in this >> patch).) >> > > We are talking past each other. > > I didn't mean to remove any INFORMATION that you included in your > docs, I just proposed a compact format for the same exact > information that was in two bloated tables inside one compat > table, so I ask again: what information is missing in the table > format that I proposed? > >> > | ``NOCOMP`` | - | RW | .... > > is a non converted old flag entry > >> > | ``COMPR`` | RO | RW | Compressed file flag. > > is a readonly converted flag > >> > | ``BTIME`` | MRW | - | Birth time. > > a masks only flag > > What information does it not describe that you want another table or more > columns to describe? Ah, I'm sorry, yeah I understand now, that makes sense. Basically it's "concept" "xflag support" "flag support" and if someone wants to see the actual macros they can just grep the concept string and find both, right? Thanks, koraynilay > Thanks, > Amir. --60514c57eff70d94500c183e211aa5ada7f2155d491074df85a5d4329f9c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSgVimKafU5DQMcjcDmj22qf5IGXAUCaxIEXgAKCRDmj22qf5IG XA/CAP9KxHGBWzO8lIEUpj//6Um7zbWyE4lhZycdT8cflK741gEAvN6YA31xmFoB MNYI1z2WRnK87DyAv07tS4H84RkxCAY= =lSOO -----END PGP SIGNATURE----- --60514c57eff70d94500c183e211aa5ada7f2155d491074df85a5d4329f9c--