From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796339238; b=uihBmyYK2vh6jtrfgqk7mFPEcO4aAVnIqlAbIVi7iDLvQQi2Fb0j2PYg5k1W6cdOojef csv7xdeQrKr79Lnw5Zuo4ZgyqDRTKXa/UR3FykaCKwCVKMo0eJO6Ysf3tMTzWWi+Y9gy6 u+NTs/7VR3FJOegzj32QNAIHrTnJmNQgJLHyBS4Vyhuip9hWhjB1asTR/TIM16KrGA/Dl iZ5ZGcWyyrdr60ToK/ohPi382dOhc3gZPIoImP8gNdEB65goC9XgdbZ/b8uL3uwcZ8SNO L5TzUFu17KLVYmRmma+fQOtoZrFHf/DH6MJtu2KlaToS1ipn/Nb4xBkfRBUu0oWRrBw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796339238; 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:From:To:Cc:Subject:X-Mailer: References:In-Reply-To; bh=FCvvo4xZynu0nsOoB9AZsaCSIwwpPXLDJDXIznnI9Yc=; b=0ugkLZiemd6sE/zTnU3+s6MdtD/qzPh1OV1xsLsTKgCpRaxag0arb7UhZzwNurH4PSEg NgLzkWaKHSWYpI9jLC1cK3jX6xpMCciBbXeMUx8z/f64W+l5hMFKyi7JW3v6ZAmxfpS0M i13mmSKVudVSPohh+jBVXBsVfPZ9ABP1jkCWame6pBs7BTHmpwVBJ+ldFz+QfJsbkfpOp r1Ce3Y0fia0tKEVz2/lVvg7Sk8mJFFH24zqsNQ17V1QbrR0sMiAoALKo6Jnd31Ju1+Bbm ehiNl1AMPpj6g7AcOs2cGakB/x7ROa+k+2zVDhLhDMFIDm7gGVfPfMIaIPErmucfs+Q== 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=Q2cs+jx9; arc=none smtp.remote-ip=209.85.128.53 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 154C9606A335 for ; Thu, 3 Dec 2026 23:07:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 154C9606A335 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=Q2cs+jx9 Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4bb6886d30aso2861735e9.3 for ; Thu, 03 Dec 2026 15:07:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796339236; x=1796944036; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-type:mime-version:from:to:cc:subject:date:message-id :reply-to:content-type; bh=FCvvo4xZynu0nsOoB9AZsaCSIwwpPXLDJDXIznnI9Yc=; b=Q2cs+jx9KpahwSShMiPa+Djd07zF43bJmkghapYIF6QhHEU8Igd/tnmhj6Fndj4H6X qbgXr+kjJsNqxLDW965crwVuuFU1rONLN702cBQnQTEwycA1PpJ72VieI6CtkOkgIdEY XHv+8LJzg7apkc0Y217is95ACg0J/r72mOLRJ/MlsHZ+G4KpEnPvV4fOG3LAudIXBsFB R66OMGEMfzcHNWQW6Ftc7U+zJgXhpxNpjYBGFzMNBsQ+FVEqUDlFexIKq/OfEWjFNYia XJDij7q6QZsGI9MIws1vH/iYp/V8DjDLIMAo3chY6gqWXnpjnIe7SYJrItW0AyDw/z/3 xegg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796339236; x=1796944036; h=in-reply-to:references:subject:cc:to:from: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=FCvvo4xZynu0nsOoB9AZsaCSIwwpPXLDJDXIznnI9Yc=; b=XddcwGVRLYhQW4gh/zQjmaFgEsLbdLlX/IQXuBJENosJK+Wk8aPHG1ujEKDnhdOLpl z5x0zQvg6yPUnuCylooSRTEzP1Ql2JDEbg/qB2WBNc3GdxHJy7/VrE1rctlD5pyCeOQr RqtlaVxiESKL7CIP6gTO3yRozvW8a6sk8Kw3g40dA8cokNVaPIHBKi6l37JYxgabnhhA ktQ8tuyB6DSp60zDXsBFX5FZGTa11x33RvnTk8/gska77OlP2z+qk9h7S+loYm1b7VVJ FHrnntVyktiid/GpjAuiBdGpWs0BjO4jrEpL3uG/cUBIvDAiC2/UEmVPhGXY30uJAuVc oBrA== X-Forwarded-Encrypted: i=1; AL+hErGW8BBuYDe8s56YfMBzXhDv/mDclFzf4rzzVwWunLHm9a1IanK6nMEr9KLabBax3wldNrROdqbFZow=@vger.kernel.org X-Gm-Message-State: APuU4Z+Ql4is8hWcbHmEDpLmMRDuqzROtpopON9MRwYi6qVe4aS7eCNc J09Tdbm0UX0xTsT/5RQvcmBNhLlAa0HHWWQc7JY+cGNVWApbhL524OOE X-Gm-Gg: AZFdTZfsyMq53c5bbkexeEAsiKaEwful9yPFY1IIPl5Epd0KYYuP2UZDswIzSHCATkp uR2u+GmgmGefUHIkgxkm9oO0tzoHtlNuQQE1MOhDd7hTsFK9sd/hEYQgVnR76uf3buNb92Rd12f m3TPHMkx4RYlxs7XHq6cwK0zvcsvBZ/Tx2DYlzycm1AuroHNYVihUf+C3qzJq4AJsNhvHQ9OJrQ xjR4q6O3mXihQCDipfqI3AmQYaLbYiR0CNAAw8jPNCIf+vgJR8xihMpo77FV5Jm9WP3j6Fss+do Wdh7lc6TKLIbo6l6PbToz6Q7gRCoGYUw7IrR7Wj4RusmJ+ZjM6XWMbCaoZiDPonMfgJoFqOPqOh CsmacX5GXK0e/7osEIpZ+4f4k/08oX0igcw/g6lzhbGOdA2G47E+c89z6Z3qsPLO3JDgTGihjss 2U4JNzDH0/HsHZKEOe6cXUtSko8XXNOPdfC3Xi88czPPPUeRlf5hndyPNnS+ok8bEJWlWR+9x+9 3ZIFVHHVrUe2onRxGAUeEGEhTgCNtzeRr78a72c2YMKgM+CDmmdnxjeL02+R9DP2AswQM0NPpDX +zKLRXv0YVq+BsxzT9Ny5nb2QQ== X-Received: by 2002:a05:600d:82f2:b0:4bb:6a5a:7834 with SMTP id 5b1f17b1804b1-4bbeb8ae149mr2439545e9.20.1796339236482; Thu, 03 Dec 2026 15:07:16 -0800 (PST) Received: from localhost ([2001:b07:5d26:7a6a:365a:60ff:fe0d:cfc6]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbea298de4sm7706825e9.1.2026.12.03.15.07.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 15:07:15 -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=049e4ba8ee2dc3100e4361fb97c2966e971b4cd61eaa7db98b3f6687b60d; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Fri, 04 Dec 2026 00:07:14 +0100 Message-Id: From: "koraynilay" To: "koraynilay" , "Amir Goldstein" 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 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: --049e4ba8ee2dc3100e4361fb97c2966e971b4cd61eaa7db98b3f6687b60d Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 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 | Case-ins= ensitive lookups. | >>> >> ++--------------------------------+------------+--------+-----------= --------------------------------------------+ >>> >> +| ``FS_XFLAG_CASENONPRESERVING`` | 0x00080000 | RO | - | Case not= preserved in directory lookups. | >>> >> ++--------------------------------+------------+--------+-----------= --------------------------------------------+ >>> >> +| ``FS_XFLAG_PROJID`` | 0x00100000 | RW | - | Project= ID value flag (VER1). | >>> >> +| | | | Updates re= quire ``init_user_ns``. | >>> >> ++--------------------------------+------------+--------+-----------= --------------------------------------------+ >>> >> +| ``FS_XFLAG_COMPR`` | 0x00200000 | RO | RW | Compress= ed 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 w= e >> >> Yes. >> >>> have "Flag Macro" "XFlag Macro" ((I really don't like "Xflag")) and hav= e >>> 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-mas= ks/fileattr > (don't mind the unclear writing in the note above it, I haven't read it > manually yet) Ok sorry updated the html at the link to not include the hex values, that is indeed pretty useless since it's just a matter of reading fs/uapi/linux/fs.h. Thanks, koraynilay >> If you want you can tell the story about file attributes, some can be >> access by one API, some by another and some by both the story can >> tell about the template of the FS_*_FL and FS_XFLAG_* constants etc >> and the table could be keyed by the attr name (e.g. ENCRYPT) >> and the table will say for each what it is and which API can access it >> with which mode, hence: >> >> | Attribute | xflags | flags | Description and >> Constraints | >> ... >> | ``NOCOMP`` | - | RW | .... >> +------------------------+-----+-------+--------------------------------= -----------------------+ >> | ``COMPR`` | RO | RW | Compressed file flag. >> | >> +-------------------------+-----+------+--------------------------------= -----------------------+ >> | ``ENCRYPT`` | RO | RO | Encrypted file flag (fscrypt). >> Read-only. | >> +-------------------------+-----+-----+---------------------------------= ----------------------+ > > So you mean only saying the attribute name and not the flag/xflags > macros? > > In that case, I would still keep the flag|xflag table as it is in this > patch series (so devs have a visual way to know which flags have a xflag > counterpart and which don't) > >> And then somehow also represent masked only xflags, maybe: >> >> | ``MAYSHAREEXT`` | MRO | - | Maye sharing data extends with other >> files. | >> | ``BTIME`` | MRW | - | Birth time (modifiable on >> some filesystems). | > > Yes, but IMO this could be done in the same table as in the link above, > just like all other FS_XFLAG_*. > > Thanks, > koraynilay > >> Thanks, >> Amir. --049e4ba8ee2dc3100e4361fb97c2966e971b4cd61eaa7db98b3f6687b60d Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSgVimKafU5DQMcjcDmj22qf5IGXAUCaxH2IgAKCRDmj22qf5IG XHQ+AP9iNGpq2UesCbuRsvIApVy/szFhmoLIOAQEP1ecoNMJNgD/UMw8wwhk6paW gLMd1FL5F9Bha4HU2j8EatW3M5sKkAk= =4mj5 -----END PGP SIGNATURE----- --049e4ba8ee2dc3100e4361fb97c2966e971b4cd61eaa7db98b3f6687b60d--