On Fri Dec 4, 2026 at 12:45 AM CET, Amir Goldstein wrote: > On Fri, Dec 4, 2026 at 12:37 AM koraynilay wrote: >> >> On Fri Dec 4, 2026 at 12:29 AM CET, Amir Goldstein wrote: >> > On Fri, Dec 4, 2026 at 12:07 AM 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 PM koraynilay wrote: >> >> >>> >> >> >>> On Thu Dec 3, 2026 at 6:45 PM CET, Amir Goldstein wrote: >> >> >>> > On Wed, Dec 2, 2026 at 10:54 PM 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 | Case-insensitive lookups. | >> >> >>> >> ++--------------------------------+------------+--------+-------------------------------------------------------+ >> >> >>> >> +| ``FS_XFLAG_CASENONPRESERVING`` | 0x00080000 | RO | - | Case not preserved in directory lookups. | >> >> >>> >> ++--------------------------------+------------+--------+-------------------------------------------------------+ >> >> >>> >> +| ``FS_XFLAG_PROJID`` | 0x00100000 | RW | - | Project ID value flag (VER1). | >> >> >>> >> +| | | | Updates require ``init_user_ns``. | >> >> >>> >> ++--------------------------------+------------+--------+-------------------------------------------------------+ >> >> >>> >> +| ``FS_XFLAG_COMPR`` | 0x00200000 | RO | RW | Compressed file flag. | >> >> >>> >> ++--------------------------------+------------+--------+-------------------------------------------------------+ >> >> >>> >> +| ``FS_XFLAG_ENCRYPT`` | 0x00400000 | RO | RO | Encrypted file flag (fscrypt). Read-only. | >> >> >>> >> ++--------------------------------+------------+--------+-------------------------------------------------------+ >> >> >>> >> >> >>> Oh, yeah, the 2 columns for RO/RW are nicer and I can add a column so we >> >> >> >> >> >> Yes. >> >> >> >> >> >>> have "Flag Macro" "XFlag Macro" ((I really don't like "Xflag")) and 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/vfs-masks/fileattr >> >> > (don't mind the unclear writing in the note above it, I haven't read 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.