From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796393153; b=JutLSt/DG+nbj3SEWuAZXkmuOZuupUIFbOv0fWddj08uX2BjLgnQMk+vmXSt5uEM6fVC hY2DqJGa6BpX/dLdI7Jn1gkOYhZUnFaiJpQCRVsw2nDpbQkcteVpmBxTOHrU8sU9m+tQ6 muiAqMRM/Yv6AxSzAASC0+REEx2u+YR58IMQkH+3Xly5MyoVqs8lyJPW1zk+K8tKd1T5K WI33ioDk9kEM1DdP4+LtEBPJ/GwBj1ym6oGINtu2nK8SNNyqEM+aQx/ajLgT+pMqgq/hE a6nqGtycB/jPbKTGs3VVCpJ7pik0pKACRpUs9VaO5QHFmW1LHE0YRXfgNO2J8Qfp04w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796393153; 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:Cc:Subject:From:To:X-Mailer: References:In-Reply-To; bh=4PkmDat4McHOKybarwliD/j/dyWrmlJIHpFHbZjmfyQ=; b=xyVeNCb72NVq4bqEtsixWQxPacZjybA9DFZ/cbwc0SuoAnKOFxRFmvMRE4h8RTItHKoS Hh24CBOoA96Jipexa1HA7RcMA47sNJqMGD51yC6PVw6QPAiIEW5uWaO7NFeKLeMdgbYRg z2TGxHBAu6K1BZGQ1egjlbTkWbjrG4BAjlRS22R34cyaUzRuhk+Cw9PMS9grqDg0Hre0/ 5tPH4PkyIhPpg/ef442BbPIFsy8mXFUmIlDyoNUkdM8Vvkq4qy2vXnK1bgpdzNml+0+8+ CzCt5e2CXKAEKJL3mE5sWZgCEtsuQN5bFWy01II8MUWmCGG/Wwgn8Sf0UUgU6jtG65w== 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=LItddZzQ; arc=none smtp.remote-ip=209.85.221.41 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 935E2606A332 for ; Fri, 4 Dec 2026 14:05:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 935E2606A332 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=LItddZzQ Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-491846221ffso852329f8f.3 for ; Fri, 04 Dec 2026 06:05:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796393151; x=1796997951; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:mime-version:from:to:cc:subject:date:message-id :reply-to:content-type; bh=4PkmDat4McHOKybarwliD/j/dyWrmlJIHpFHbZjmfyQ=; b=LItddZzQZsyAS46C1kpMkpniyHK11lxrVoYe2okhpSTQJFipsJp8Vxp898K6QB9OY8 DewQgSp5dYKdPHqLNJooVJSYFbAECR8XzSs3Nc+MW+jRz1eukFa950mYp/x4hEC9nUI+ lStXjh70Bry20YRLib7nH1T0iV1b0NrGPRbhvGZppPD/kV6HIa2TWDKvZOqjNZ5R/GGP A0p6Q4udTGnXxAZ319KTMCm2vQE98cWHXIFwOcfLtULjBGIL6md/6XvBmNqXbi/Wg0ok tUdZcViFDlu1Hbrvy3iuNKRVqLyOLRSCbsi4dPK+oBPAlYqfEd8H1HiMdaqoRFWRUpt1 sAMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796393151; x=1796997951; h=in-reply-to:references:to:from:subject:cc: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=4PkmDat4McHOKybarwliD/j/dyWrmlJIHpFHbZjmfyQ=; b=WYoLMDUycI6uCeD20SZ9/WHhIr9ODNYX00f7G1M6fyQYA4OlbOXxUUYsD6Mw91wMB9 Ce0VQyolStZPe0Bz0551izIfTGsnmfbCPAGvJT1FE3XkcqhJt7sJe3FLsKRV7JwWU7In rz96uXI6GB3tPg2PcHi8Ozjohh1wlRTpbBIGrwQ/3bfyPYoyo8XIBURuGBf/+/jkrNKz m66YPC9SeniAYVJj8FrtfPgjd7jEQXWrGeytqWbD5UJqkMAZdDQqzDRjLf2Bqq57WkxV jnVbIzIjcGH7TpqVyRnqkzreN7sV10alaNDTbaYEsY44NM9psu1+rqc0MTL05exXCHEY c5ig== X-Forwarded-Encrypted: i=1; AL+hErFA3yIbXhTFQ7nRISO6vUGORwOl/A4ZrfnLmetoEsnSuyjpLGTilHT9nfDnu340Z1Al5hKysfeIr5w7PQ==@vger.kernel.org X-Gm-Message-State: AB4q+uGssKBhfTP8TLWEVgRNQOsc/QT3qFw88lOwKL0ee1/wVpewDTLX tTTg718A3wSaDb05UKWq6Ova3lXzaEl6gPvaTD6UPyHQVmw3RzU+HubPR5LFtc7M X-Gm-Gg: AZFdTZcjSEVw9IRq6AviRCbV16AuJgK8ysV+ohwZ+fRkTOO6vxDnLLPuY1XPtIHSQGO /Z5hJkU6vn8KDoEdX03GbqUrQJnE9nbwwLGqWRrdob5BYyu77H3lrZglExUGzanXr9+HtYGWUm4 kDzan49/IT+NUzxDtIhr4K05Xl90oIKMOgoZD40ej7n0i9wPADIu7Z7kKD23M0TpKsAQ3kwC/tL fIJtIK4iYfVSgNamIfOSMKHkZcAg1Gqp8QQRb4L3uALXdRWyXQdR0XBk6Lw8YUwkHxlMhcPZpWv sGhd0JZ62XmUL2QVp+MVWlYnc6atET1P/5IHqgLdfuIHJdlKV8/FysG+eMISYQhuisFcerp8ye0 Xn9q0jyFmQNHY5f7ZyHdVhYRJ8jlyhymv9srJtJB8Onr3NkMU5BVMXGZtYfPPLlOA1v+ftVP6Sj LLl3QdM2/LWFJcGIssmdEs7wiuW1caD+CsFktg7OoD5+ZZDECoBSAZ0UwtPSsS82txOzHRR6Spu vqIzBHZeXd+JD4DcZPYtpjy13QfUuN3JWDJpcYVI+6szKWvhtuNkvnR2U3yxGddns6Dsw9yayWT Xp3zUx+oTi3VbRpQUe+/eRtrwwmrYfA/vpwOIxO1//+Pxavp X-Received: by 2002:a05:6000:1a8c:b0:4a6:4ac6:d952 with SMTP id ffacd0b85a97d-4d1ea69e301mr4586671f8f.31.1796393150290; Fri, 04 Dec 2026 06:05:50 -0800 (PST) Received: from localhost ([130.192.98.149]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d172f363b8sm5951124f8f.22.2026.12.04.06.05.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 06:05:49 -0800 (PST) X-Mailing-List: linux-btrfs@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=4c3071dfff439c2a6d5f9b61affb31cc27a5745e3203ef85cb4c5fd4140c; micalg=pgp-sha512; protocol="application/pgp-signature" Date: Fri, 04 Dec 2026 15:05:38 +0100 Message-Id: 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" To: "Amir Goldstein" , "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: --4c3071dfff439c2a6d5f9b61affb31cc27a5745e3203ef85cb4c5fd4140c Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Fri Dec 4, 2026 at 10:18 AM CET, Amir Goldstein wrote: > On Fri, Dec 4, 2026 at 1:52=E2=80=AFAM koraynilay w= rote: >> >> On Fri Dec 4, 2026 at 1:07 AM CET, koraynilay wrote: >> > 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: >> ... >> >> >> >> 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 a= nd >> > find both, right? >> >> Updated: https://koraynilay.neocities.org/vfs-masks/fileattr >> >> What do you think? >> > > Awsome! > > Things to improve: Updated: https://koraynilay.neocities.org/vfs-masks/fileattr > > 1. The order (by bit order) makes no sense. > I suggest to order similar to your seconds table: > Start with BOTH, which are likely the most important, > followed by XFLAGS only, followed by FLAGS only. > Those are arguably the legacy least important and when > a legacy flag is converted to an XFLAGS it goes up the > list because it is obviously important. Added the requirement to move the line up in the "Adding new flags" section. > 2. MRW: Read-write only with masks. > I know I suggested the name, but now it looks a bit like RMW... > It would read better as RWM (Read-Write only with Masks) > and would look better in the legend. > I am indecisive about the desired internal order in the table for > XFLAGS-only vs. MASKS-only (RWM). With PROJINHERIT > being the last in the BOTH group, this order also happens to > place PROJID just below PROJINHERIT which is a nice outcome I used RW/M since IMO RWM reads even more like RMW than MRW. > 3. Some flags are implemented by a single filesystem, e.g. most of the > XFLAGS-only flags are XFS-only and HUGE_FILE/EXTENT/EA_INODE are > ext4-only. You already note "(XFS)" for REALTIME and FILESTREAM; > please do that consistently for all single-fs flags, so readers know > which flags are generic and which are fs-specific. Added the (filesystem). > 4. FS_RESERVED_FL is reserved for e2fsprogs, it is not a file > attribute and has no place in this table. > The "Reserved for ext3/ext4" comments in uapi fs.h are historical > bit allocations, not descriptions. INLINE_DATA, HUGE_FILE and > JOURNAL_DATA are real attributes, describe what they mean. > EOFBLOCKS has no in-tree user, so it can be dropped or marked unused. Removed these. Thanks, koraynilay > Thanks, > Amir. --4c3071dfff439c2a6d5f9b61affb31cc27a5745e3203ef85cb4c5fd4140c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRJ2XvJtXGwULYEerQ0bnTtJTDoOAUCaxLIswAKCRA0bnTtJTDo OJtRAP9XbZjGAPFn5XGS5wRcIVm1Yl+wSwraGLxoKivpov7IFgD/UxDY/Z95lKUE gToRcZylpsCkSPCvrzEHSOD4tSVgBQ0= =xF7/ -----END PGP SIGNATURE----- --4c3071dfff439c2a6d5f9b61affb31cc27a5745e3203ef85cb4c5fd4140c--