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=1796342886; b=SXgf9UKBOfqdBwIUmpOX1Vq3HCUp9BBzHtPbC6rHe8XudEYlB68C++K9Btlnj5hROH7w TtZDZ+3AvZZBNw1P7t8Hmnui0WbUcrxkfkJZXcn20ARtOhJ75x62a2wbEK2DGjHqV6jnS eh6Y1Np9oCW9bORfpkuFSE33L2teddXYBDsEa4jFB5Vo2xpMKwDa/lmRuB6OK6EbbubqW Fbc0fsGtTUccxxru9pgjgIWIhbKiaZwXkMjIAvENfkm2kBze9LJcxQsrPe2RVSKNy8BB8 b2FjU5LarFklkJyVq4qfWP23H+JgfMpVSktaSo3OdMOW4+G9cgAfx4e3arMaWz7IjOQ== 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=Au1ySD22WxVjWdFMHz+Me+hmOAFjvfsM6w1fzKat3yBCkKUkq+uVrRR27UpVls+Ko8N6 moqaO8XplLXJXqWUgVGLT18JcLDUez6JpS2l8qQ7xlsJ3i7isyibGyLo+n7jfkZhdKE08 ajWk6bdo0coYmTd4nJzaYvUmfuTNEyx9yQfBzdAwlSbcnyIeVTIDTDQ1nz9G/w2oCn31l uCHnIEuZQhT+krZBMeBq12jeDTw7haoJm+8aMH5VlKhyL7hhdgeXBoot9c1raBIkUoHg2 JA5koEgVv91few6TJOCGIF13XNnsrhTMbLIA6AOMeXQ+W3400jjjXGrY7+pz7fpjcEA== 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.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 B59AA606A32C for ; Fri, 4 Dec 2026 00:08:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B59AA606A32C 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-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4bb5b8ef642so3131635e9.1 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=Bf1Q4KUjHdlSMeOOyOuuWkPg1d/pFixHfBB4WEQk0MriSLwR2+qQOUP/ooMMX1td1+ 4lAzOsNKu6nCLd6tve43Vo5NaNa2FjBDnyWdQ50LzfacBSqzsvPrxGvGLl1TAMs/mrYK 6tAgEqvIaA8MDoqIr/gswX+l4dQ6MPVZZxGgxUMWMiWVRQqMwFvwc5rl7xptJ4nF2Jut A3Zmp/kHNW5z8snezGkXcSwTiIpiJeVrW4tvCBKVWXRCzNpdMTtHt0zpOhY364WoCkee +UqCeEtCzi16n5N/A7kQ8wZqe9sgL9aGUP0Zau2/NmPAbbdB6AgLLZ0U0Py79VjDWA7H UIHw== X-Forwarded-Encrypted: i=1; AL+hErHsxnFqfO8tC/rWYJqEkBaoaR8FaEcWc9q4zFhHYyXa+NZti/OPT2hIlAa16ErwRJDfLzoCOD7mjJnUPw==@vger.kernel.org X-Gm-Message-State: APuU4Z//7i0BUBlG80PzEVhUH83WMVdP3UJX8qgfxuSaFFypk/xc2rP3 jtakwpykrc9y0Q1Me1/C3hIf4F8YV4BG4T0i888/co9/WYwTAHSoE01K X-Gm-Gg: AZFdTZdh3EmcGil2Ik1ImLWUJm3lSDHL8BGXlLbKr/BWznR5087ndowbq0aG+SsdQg/ sKN/pFMfmaSuRBcTwISmP4+GHN4qSCrmiF7Ko0JfDDySVphAZKsvM3Krp2nA9N2s8uL6w8sIlIe 8eAWbh1oLbDbErh2EMs6GxvIKt0xbl05W03UoUgFZParW2AmKrbui/9EgrbHpDY0DD/HZrTkKBz k68cHYsbQrKf517Cunt3JEuR4C88aFLtzz8M2O/2VzI0rbPlJEUXJ3wkV+s1aqEs1q7pKDQ77hQ ju3fdmxS+XFs7g/PLGoCdi8OgQ+Y0gVyXzlOjmEWJ9afpdVQAri/WE1qtYivp2LRCQlrOMk7jKF d+S1reml8NxQR4vR2mLFaD/kX1kLqh4RyNt3dzZQNUUB6UnEcVafL9s8UWZYPGLW0aytF67Qz1o DbCsCiR0Cf9FxWETACZ8G/26Fg8DWL48QrSDvtTVFmeNc298BM2jUhCpgrOwoF/9d0u3avVysPX UE9Aatrv+ps10mFbL5VKPf2PeKIvwfSK0ZbwS4ifew0v1F4MTQORxw79Jb1vBrfKmC3US2qm7cu kG2omvI+IRcYC7rKtTYNgZglAg== 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-btrfs@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--