From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796342886; b=ByJnqtv8liiRrb0WgNn/Kr31J8JCrKdqcn2oOvhG2n/r+EcoDBdTttUwQT/lxENueA/N lzt9sd4QmdbyVFwRdjJdA9n5tEg3Bio6wW6CClGVZRKkqWRiP4vO15sZsWUTi9yiv+DE6 7MB/je6HwyvMRu/n3RJEZF0LXmNCTLK73Lp16r/TvZ/E1zYY4YIZfN07HCF0d6EHT4x3k zhIJ9lU+/B3ekSU1VL0pkUyg4mPjUiCFF839DxZZBbW1nGXLdKK5V33daR55ORXKMC8s+ TBHyFIg5K6f5ckk2B/fR/viG3TnvUYuiX7moWHeMXmx+ciZFivjsdKzUCScEnK/ABpA== 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=y6CP00/qo0lKNNith7o9XDk7GJVIEgwfHG+3HmSyPWZRgziFh7p3Dn9Mxf5nm0HmpZfa 3TugcLzkkRnBnhg0FTrwUQhu3aQU2SbRZrDfUAwraT8PBFGMXX5riep97tmowH45kmNFu V1kioSKo7pqAYCWjyUXDuZGiRrUeFSvUtkLXyFrJdrmsgBhrmlTjWdp93CwF185cktWN1 pkWlxApmZBDI8il+wxtmyc+x9cb7FJ2/IgOxFX5Fb9IFr9q7ZAxVWWcwgnTnLaeFoEp7r 2fcPnVsH6MMjHf/PYhtZ3fJfTIH6DYf1SXLf/tao9dQSqGv7Y7LWkIc0lr1SRO5ueMw== 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.46 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.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 C5C8E606A334 for ; Fri, 4 Dec 2026 00:08:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C5C8E606A334 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-f46.google.com with SMTP id ffacd0b85a97d-490c3ae81d3so216858f8f.2 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=UGNTcUL8vvDkQZD1qMEcqBzdyhis9qOitxkGahf+tLmwNOx7cysN14Ho1mTa8V2C4o UD8kEZWIl9/BDju+OnPNlUjDWHN6KqjPYGcfEonury9uOjVxOpjH1WizqwwbB+V1IIti b87v1QeLaEZBWLbHrkE6I03m8NRpbCdXgZPvqMz1sijtG1tXg+CWF3k/SkpOyBvcx+pA 4iBxgX3hOJFY0g/65NaqugJgB+bstxji0DBzBTRvPD/Na756bjCY/JiXe1rpuZCnZ3ZR ceDZyPYp0XQf6ISaOaL9ajintSCvmAYBtUB8dxkAkFcgiM15HxRQIbVXSlGiWMmdSUha 75zg== X-Forwarded-Encrypted: i=1; AL+hErH/c/awbPJK6jOYOBs6i8ySohZ6xCJ9v1LXNJVRtE1SsW5L1DsGDRKdDsD5EWmAKO7P+VzK1G5fIlOVTqem@vger.kernel.org X-Gm-Message-State: APuU4Z+m5X9mFCwqWOZdDhyxCDhBF0T6pN6x6jV+FIilONV5pyfXzz/p O8zwiQh8fbvsKfDcj3SR7tdM8qwMSSE9MBJ8kEGfTGsWrZSZtFqsd9RA X-Gm-Gg: AZFdTZd+C924MacYy1C5ctPN5GdDmL69deveNGaZrCJfFKK7JtXLv/ugB1mdGUxkRaw Gs5YeIEXuokJqKBTs1JTWno3vN3wpEj6GPDUSQ/Aq9She/cWucrHpvJl8DEbRU9x+LA+wHkQTAH Uz6TIHVfXzRTro9aisGcljvr/y8C/F7u9zhO2FjIrlGrIglepJHQJcuM+UUFV9HSzj2FKpL3ah0 jiZxq2t3mJqGeGCNGEBrfIRcAQg1rqa9JBMmN0o+C5NydNVe5nb67PYa/kkzC1uba3gnuH0WrFQ LuPB05qzs5gtc9FbnEfVv5wOn54YNHHtM8MAA67VhvSZmuGSupYTZlvsszsrRYlC9fnTCj+Imv3 Dk0s+JrV+JbIpeSgLkb0XWu1S43UCO+T3gTHFdsQubRK/vPt0EzqfuROHBgFnkKr0FmZTNpIwws H67r0TXGhK6vZmvwH5wrpNnRIgZSviNuQRqX9MOlZMxmK8LcFXYdiG/LPZFjTPmcwq/McrR8M50 IDpbstrcqLI5x8Hv6akQheRw4Rl5W7X3Gw15vQ3eoh3+vTxTpWvWy5kHesTw0gHFle28z33Tr1A ZiCy6d05u5WnW3VhUYcmyvb0pA== 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-unionfs@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--