From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796342886; b=ijXAliWNnucLjPt1eEqWMoUcUgxaQri40LILU6mU9oKBOcyORajfjTdmUgspLWdkOsVD KyWf1CKH8x6qeaQClWV4s1alUOheQUdbpSDwRScWJXEPjGNCi2hx+9i8n0iG+UoNkU3Mk z+61LIJC1E1Vd4hhMMn4nbj6Wpt66tEIpUVpZlJwge0HG/nmSImL0zZ5YbP6BLdJkwrRm 4UOppc1kpaNSDopDgkeB1M3nvngTAp6R0Yy4fTJxgTDr47C17Tet8EY8v11KCjw2a/KQq /GfU7dJetNVA4wI9ntTxDokCzTKGHxYwy0KLvXYr3YhmQek+G561T+ggn2DUNO7IFeg== 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=zs5SjdqgiIQkQ3efU4vyOqvWSjKywzVn5UJ6xRPECbf2QpdT6HxD69XJzR3vIclI3qPU NjsU0BHW5XCT2mMLzLektFzTedFAKVjK5J15YYJbs94/T5u4HCzw1G+vx1G+9zpu9Kh8o //YLC9+6iYjtYrv0CpdI6daln6HP+PuLEO8ciB/AbHcN5aRsdd8dI2v2Z9LfFNg2B8K6w iVFSXCs3QUGL+dQ1xYba5eeghcD1FZjKlBAhlzAh6v+etQp1bvxsYtFfhOoQnomujv4Mq JKcLK/8xx9sp+RuStDfT3AUScmLwP0HeqWSOAZ4uX5AhpFHJvq0tjAkgU1XJI+3iM6A== 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.45 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 BDF4C606A330 for ; Fri, 4 Dec 2026 00:08:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BDF4C606A330 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-f45.google.com with SMTP id ffacd0b85a97d-490c3ae81d3so216857f8f.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=2aNKuZbgJ6ufOkWHggOREMSWRIa2gQio63owUJnv8dmH3lVcBkVlhBaHrNqDFaIWYd iVZbLIQLZCCaeK8eqpR59nwRxcXmEIkZlrMFxerUAv5ZW2N7S58WdYpVjDPTZxmcveDb BvGcI19h3JI3FcncXVIoscbVvDYNuvdIpTS/Pxa1qYa/XQzPbSVmQ3rsQJH06xpH2/Ht X0GsrdDFDDzHofCQ7KYCsp0ACTJPphDxXzBXkbxXyMTxEsZCxEBszDThoAtPn3A+oFfQ 44uK/K3Od3V8tfWY/XegHmhU9X6WFkNqJTRTmFvLTzsOrKbH/PZg258e1qbc9j8GH5G6 dR6w== X-Forwarded-Encrypted: i=1; AL+hErFBiO5X1l8DKAZ2tTaGxJVWVJl4niWLC5kJHXamxlVHJfvZTyZhU0bME2LubJNeLHZP3S8R1dyhG6c=@vger.kernel.org X-Gm-Message-State: APuU4Z+RpfwNufSnx0Bi8dfIaQZOt0dz7mwF3HnfcsdDhRajzWV2XyYW +HqMSj2HVbtG8wcAcqFaKLMckoO+YW6L8C4xSPg5mAYJI0Uz39QQPm8E X-Gm-Gg: AZFdTZf99ALEUPP85MPZ2saSpSUEk1YxWrEnYrsCJSFCgGALHhpauQGIJds1UlrozBQ r3XRzOzxzvCuFHiJqqH/Ex3BIeNlTfOMCAfeZ/mbs4Xxf3/l+5wujYPH34Kwj0RiRBFyxabWB0H 5dZtdvsQCMtABYcSRA77Rk0TqV/kVOzBhJ8/kXPe6BQmcVfixVwwy+2mcesM44d234E8oxIVuA6 KAhqv+CIRt/kJsX5xjRw6/tjmqXfhqjVkdeK6zo6FrYYP7aRXkYxYKCAIrUegJzVBu9Rng9bwPV w77bHiBc7qOPz9ai6T0lpm//1quNtjf/DhaQ7QJVIc88tXCcDJmdTMQ+O583he8M+eGYYW3iz15 8nL6HIMM5rPVdK/NvJX8TmGjzY8oZXvr4qOpVWkcR/X8D/RmKX1H42WFTj7HahB+f7d4MQuUzBP 1zLxkufk4L56mX2d3R354hlA0hl6u2LR5eEJzNguEaQw2AAue9Q7CcZXo7rCsPInz9kmrHdyxFp tcxDMswQdLgTaQZfHH4U3XCqEq1JqbQCM4LHyhvjanR9SX5pchx+AE8zaCKHbuHjEXltGZdW8Om wkXd+20oE+Cue0FH+YBP1hVl7A== 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-xfs@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--