From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796339238; b=EQcG2vTAP02XrzmI7RIICrXAS3bMPq7Em0FDi4Q1bfg/88H/4EUsAYw1IsXmjvMph8US ljaFpVQZAXErcCcly1Hq00uDRdZpvFmV1R1oxcKVPIoz5UgPiOOkNRzaLeJZ7lQJBFaNr heD04STQMCaXWReEg0hRdW984Glku/qpXtK6GauRLGmUWS6W6rmAw6zdTccqlfWiT/YJ4 VjFUQMVZxU7W0B9Kr30FrcXF90YpxLC2aXR2bQKKLD05f6VYTEDEnmPoxzkCuLZLfLJwn t095CoBhdTVnxYuhYG7752COvQoKIMQSveUd3xWlgzjdPcR0rMTbJB96uMigL67t6eg== 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=nFSqBg6OleuZBRGg2fmSJyty6vxGX0VIaFq58MHZLh+qcaRJChxfUGhXIiMJ0Z2wM8PG WGui16qFh9QKqzqcrJTjmUShPLkjiIyQ3Egr3N46GElmR/SmKQ78dYeaQU5Stzd33QqA5 JlA5stOPHzFBZGh0U770g/pBi/i3fgpSp8AtoKIJOJaXkmbDC/4g63t5Y28+FWfp9NTVo cnFLsSVG1qjgmqDGRDK2N3R3mqfuG0ULs1awg4Bxol6DhFVqCG7yo2GLgwrSE7oh0TyZu XoZ7BYpxqx3IA8ZB0ANfl1Z57tOX4MRm4X2F59WSeUpS/LEHKzpWLVDIleIPGBM8CBg== 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.45 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.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 06C03606A322 for ; Thu, 3 Dec 2026 23:07:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 06C03606A322 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-f45.google.com with SMTP id 5b1f17b1804b1-4bba5e17cbeso3005435e9.1 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=rLCC2h6saaAj/c2sT+I2lLz9hIznSo1KkHOltwb+63feHKxd3haiFHlLi5YX82NuND BilJiWCTFsYLGY6AScePU1Oj+klDvtXtmzMisQUwH5TrVYXAa04m921AeN9D0JDb3EyF 4lkHs6Xl62ZS7Z43coNrq1EyqSMngkSLmbgtrwoT3BCpGJr6T4JIWoLvZd3jNj24eo8t JCZNSzYnVyhXPhUYZ7wIFsRhVg78uLLEU39y6E9O8PQVcx7nuwdmSkvyWs4oO/ubhhFY wCgX1GrVbMDYqB4+KqOAkZAkfmYgyp1+RlC5/zezL48EzZW87Gyhw67FNFpJhZV4jra0 LhtA== X-Forwarded-Encrypted: i=1; AL+hErHOVhHLdMhF2uIXfxi43kYjc2ur550XVur7jSXCTOE2pMMbpOD9awCfv0KOp1Zhyg31liZoEq9ajzl+7QFN@vger.kernel.org X-Gm-Message-State: APuU4Z9Xv79bAJ0GLzhQuh/xOL9p6olIRK8fmbRB6N7xMfJUMPmRHnHd ViZUWWFI3m5f+aSNfZchscX99vM2WjuZX/oKkGdi4FLClAjB8s+O95Ob X-Gm-Gg: AZFdTZchrfGbjPtJcK2+FQSOrqO8ADa5PKgnVjyAv/OEAANt0Iwt1UySK2hgIqQhHt4 vXrmP4XBwFauSzrJXjgFBg44s9iGXQaHiDktf1ggGAQg55iIWDO8p2tbzI9n+lvBmDOSZW781pT PF0Sv8DznQT4ZdtVkwElpiTwanrVZMAYiHUgvYKETfspfwhpEhNKsrwDZYqQybioTwSQrqK2FJ0 zfs+N2kFkRTWr4zvJT4caxS5rRmebkLF+zAHNKrqtgi4FDjXbKhwNLf/uwWzXTX3BGEQC+6+8GN fZOqP1F2+zojbFxQ4q90SHHCyrkx2AGHCjnTRiB9S0N2SBJtfYJ0gIl8oH+1kjIa1U82H8j6piH KSU+PfBlz4QF5Hw12J32YCreMal/5WK2DF3MezUiSpPgP14w6zfYBNuoeVZXIFsyaEo+BtZwOIA ZVSO1bGIRt/+idWoh1Y7CuVcf7pV+FeFc5Q90eeoiODFqOzEBdfNEGaoaHRRebWPzqeW39eG9Ew plQEzsOcixNKDeN3kcr41Y+FJAW6mf6MSiWgUeRIXV2ojxkPq2kyjUy8tSuLa7o3LcrtfgbsEG3 dYR1sEtxDVPzEH5/Cju8tS3bNA== 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-unionfs@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--