From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796342886; b=eiqHSDlDEOSzzKecNg9Xkv+J/foqAYfT47gxX5Zbp8Xpk6RoLkEBgSxkAE/V6npTou4A /eNjg9/Mfgn5kIXnIjc0xB0i8yjk0P0yCJN4AFh8MOlJvyotGWO4kYwAvJHLxXiP9E7fG mRIs9mUHG7ugWMwP9GZfJpOifXyMcaU1Si8hzbZHV7Kh2Do9UihQHgZlQEzwTCqzBrrKQ oMXhnzXqjEeD6b6d8KkLlami1HxWjJm7SUcpetxP23ptUlVdH4cFTwBMFqc6o6kXNVEBa IXMTm7So8svx3SAKWzi3JZpz4jmQjax3mFCR1oDtiHZyIxbP2UHWntXbIGNVFmLsYWA== 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=gFwCu57K+uo/e1LdAUDYHS9sWnG/XcfrKusiOvVsNuYP7DeI7IyIvP/f8/oaw/++L0AT pquuR7MQigneOs5d5Su7DkMq3ho+DiPwqv+DXpzXCaiminP3WmoAcMDqcN95rVCXbIH1F cpgG3wyrlXv3SiYWpW7lGkC2uKW8eDIpWIsyIrnpoyOITYDp73OP19jYj3GQ0jQm+6SNp c8K+jOfRO0mb1Q7MogaXXTg2nF8EGoWCwsLoa2b6FHSdBz1HuwcglI03XYx6gr+sStidg +JWLU054X9DqizuOAjzIqCgl3MC4Du4JlPtxb3zJaz3m9PqGbot+gfvZ+tB7UpMzUXA== 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.43 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.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 B3E00606A322 for ; Fri, 4 Dec 2026 00:08:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B3E00606A322 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-f43.google.com with SMTP id 5b1f17b1804b1-4bbd2c5931bso2091775e9.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=tBnLpLEDZkEG/JfMyePgmWmUWvGi0RS8p1iIv5cAjeaBYgDWSNzmrtL6bkX81FPa4u NjAFztd6HVVfBrDPrmkbF5h9V4TuKcPlKHl+v8EUAlKtC8chfduWlWwkFE7oVqvstc6o dFH2D0x9S1WgMbnAib4O99T98bqwElFtwS09oIb7AxHjhpc4kILxJmhz87JQ1Mi5irwq 7fCXQx69VPZKb06ZuzGQ1+zewsfR1tThB2XXOwmeSHmfSBEw4YfZsMhUxN34/wFdHX+0 SClUjTWv72TjE1FsXFuCn6+dh18vEKxU+yV8C5M3Cvw+tB1nRTa73VXoe0dF7hQyc6Us cvxg== X-Forwarded-Encrypted: i=1; AL+hErGgfwm+Dsi3ruwsGll1sCgyvrgyNkKivlK3glUHRUOAPHIhh87OHtil20N+PQM7aejaioOuQqtDr8axYpQ/@vger.kernel.org X-Gm-Message-State: APuU4Z8vwQOUDQWlZ1cUwSkVSmKD+BBGfUXbf57AqWzdtwF7RZSFAIC/ 4SOmkXQYJEv67F9YG36OkmlZBknRLiN9ij/7QfG/9153p5r4V/baRfRA X-Gm-Gg: AZFdTZdWWT8vbdl6HMxVYQkPScoI/09EgQ5vxIpPdoEHD/NeuaN44ci0h7ExUBRZgKe WRHQWmnXi9kYnkdRtdeRK+Ihz7Rrdei0tPWDsDzmUnErtE6WejLMNHqVCOC202Lc0/z8XHKPKfn ZuIiBUswGZpFrM6ceHRHQGnWYVGQhLeE7xRsXqvw0nwhEbkQcbrehqhLUchJSzfGk49bgNxRB8w JGHT8Xr9mHvjB2UeaOPGnWh2/Yy8eunXoHug2IrPgaEWpsc7FJRdYEQ6nzHx6KaYPqLIP+pp9bU 9TToPwYUSwoRc6bFwn+mtoagQjKAwR4DTcpP91ByXTrcQpqiHu8JHbfEbWFauLayjOmbFv9TMZi Yrevq2fzo4XJ3vceyFeOuztOt4KrfizajtyVs6fbg+8vkBBK7fV/2/9Q+mbCW9rhFheDvb7A2VN fozWCdirjBvygxKyfvekaBEknN7AgE3WMnFwOMPCQFbjd/M6dksZAAyY8dZkLmYXieTeZqq/1YZ wLJWVo9eZlfHHsW1HIuO4ML3XdgUaZaCnzO4KXcVi9WcGVAQ3eGz2dC8DNhO1WWYbUkZyav1pmu vjZcLeinyH9jCgNnBUWlRhaVNA== 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-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=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--