Re: [PATCH v4 7/7] docs: add fileattr API documentation
From: Amir Goldstein
Date: Thu Dec 03 2026 - 18:30:05 EST
On Fri, Dec 4, 2026 at 12:07 AM koraynilay <koray.fra@xxxxxxxxx> 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 <koray.fra@xxxxxxxxx> wrote:
> >>>
> >>> On Thu Dec 3, 2026 at 6:45 PM CET, Amir Goldstein wrote:
> >>> > On Wed, Dec 2, 2026 at 10:54 PM koraynilay <koray.fra@xxxxxxxxx> 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?
Thanks,
Amir.