From nobody Wed Apr 23 14:26:40 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZjLyn4015z5tRw9; Wed, 23 Apr 2025 14:26:57 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZjLyl4yTNz4K11; Wed, 23 Apr 2025 14:26:55 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=PcHibe+W; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2a00:1450:4864:20::530 as permitted sender) smtp.mailfrom=rick.macklem@gmail.com Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5e5e8274a74so9792986a12.1; Wed, 23 Apr 2025 07:26:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745418414; x=1746023214; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d1KeONCQWUYFIvnfie6nYKpl4CB4DIsccguQ4ghCXmw=; b=PcHibe+W5fO2AxwRL8oBXNoxA2aZiR0ogxbZd3cXaVMPgHirKZOfO+6j9G78cs5oXK rVRAR7C1+rkRIBEUzI8hak0BycfzgNlA8dhq9kfMSE0nSsP67zxS33MUUt4YIFdBvG61 diEUPk7N/18CftZ/HGjzalmRgayQwrEA2Fv3ScAyR/mlpaubvrmBQofvQYjgGP13MrxM 9ZwtKm1wB1mJ88+L5HuRsrKYQNoJci6EDUz17q+/O+PHcR8QyT/g700MygH0M2xpVBy9 kyaXG2+R/652JC2uzPChfNfbAy2KYFCyke1goUcmWHlNhgJLXrxAsLCIZS1j560WJj9e BZYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745418414; x=1746023214; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d1KeONCQWUYFIvnfie6nYKpl4CB4DIsccguQ4ghCXmw=; b=I2RjaZTCMHjAtdfTftzICAvzRnvMmL7Ag0bkPfEV0kzd1S2/e2cnpYEM1p4431Zp+O NrMuKa3ym3WYNA2R1CkxKcM3q0ASW79alUZgNWuB26Wp6zR45CLhXbbKIHKomlV8tmPI KS+/kn8oAzdYwattcqwie5+NANeWZk7/2YyI56oTNWqsFsoKQGLWXJYFkPSu5pm75d2m AOErYCCrrMQSJT6PC30+aRvINM9/MUiprG0kD/C6qgawm7c9B4x2/w4/iQlQXuEraN87 tq4ef40GXdECvGEkC8+8wCyLSJI7RVdyk3cMdozVHEsSfxhs+a/8X+VeylEOzR9vxuOz RppQ== X-Forwarded-Encrypted: i=1; AJvYcCUO/BIfbrQAYRUBxzSrohdXpHBIuFRk4Y5IwhyBV7LH/Fap9uOOWiXOpBOm+bQV35WusCtptMwn/wW3TSszA98=@freebsd.org X-Gm-Message-State: AOJu0YxwR6GC1IW+fHipV3GL4HVjXexTikP6tZWnE6tkCDxHY/U+SOS+ HjheXk6+wu14lePuep8MZfMq1Pbt9/Z7a+h9w6YAdvlsU6KuGzHor9/K6CEZL9/wT73KZRTlDkr j/BWiftv/2eStowae2c7IMThsAw== X-Gm-Gg: ASbGncsgpWRDfgyhK9BzwnzgSi+t/CrRIH/B39faB5xA/AHRvXbwZ8eNhURkP3NJNVq 1K8rfDINnoVV86xyXljrs/tEkm/PT2Huw5VACqDrRbtufuoMmNyODC8JS6rQz9zUhfpriBBN5IA PcSrl80ufJTlQCS23bDTr2XHzo96yA3BFD5JA/AKs4q7eUeD1ql9b9 X-Google-Smtp-Source: AGHT+IG+BmwklA+iDgRYpBKXHGJa4Em1PDyxIqJ7YeTLDNPfqyeoHGNpzrnnylSyLh7/yYMjolMCGtRi4GMKyqgLu9U= X-Received: by 2002:a05:6402:120f:b0:5f6:c5e3:faa1 with SMTP id 4fb4d7f45d1cf-5f6c5e3fd09mr3675539a12.32.1745418413378; Wed, 23 Apr 2025 07:26:53 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Rick Macklem Date: Wed, 23 Apr 2025 07:26:40 -0700 X-Gm-Features: ATxdqUFvvvHXMgdnx5xQ9bfebQFaDi59XMAoyBnnecYReTRgsQyi59xKAeaOOoQ Message-ID: Subject: Re: RFC: Solaris style extended attributes for FreeBSD To: Cedric Blancher Cc: freebsd-arch@freebsd.org, FreeBSD CURRENT , Lionel Cons Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-3.38 / 15.00]; NEURAL_HAM_SHORT(-0.98)[-0.982]; NEURAL_HAM_LONG(-0.87)[-0.866]; NEURAL_HAM_MEDIUM(-0.54)[-0.537]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_TO(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_CC(0.00)[freebsd.org,gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[freebsd-arch@freebsd.org,freebsd-current@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_RCPT(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::530:from] X-Rspamd-Queue-Id: 4ZjLyl4yTNz4K11 X-Spamd-Bar: --- On Wed, Apr 23, 2025 at 3:10=E2=80=AFAM Cedric Blancher wrote: > > On Tue, 22 Apr 2025 at 13:10, Rick Macklem wrote= : > > > > On Tue, Apr 22, 2025 at 3:34=E2=80=AFAM Cedric Blancher > > wrote: > > > > > > On Sun, 9 Mar 2025 at 00:02, Rick Macklem wr= ote: > > > > > > > > First off, I cross posted because I don't think many read freebsd-a= rch@. > > > > There seems to be a nice market for Solaris style extended attribut= es. > > > > Since ZFS is already wired for them, adding the basics is pretty > > > > straightforward. I am not suggesting that they should replace the > > > > current FreeBSD extended attributes. > > > > > > > > For those not familiar with them (I am not very familiar myself;-), > > > > a Solaris style extended attribute is in a directory that hangs off > > > > the file object and the entries in the directory (the attributes) c= an > > > > be manipulated with open/read/write/lseek just like a regular file. > > > > (They can be as large as a regular file, but there is no atomicity > > > > guarantees.) > > > > > > > > At this point I have a couple of rough patches: > > > > https://people.freebsd.org/~rmacklem/xattr.patch - the VFS/ZFS part > > > > https://people.freebsd.org/~rmacklem/nfs-xattr.patch - the NFSv4 pa= rt > > > > > > Any timeframe when > > > https://people.freebsd.org/~rmacklem/nfs-xattr.patch will land in > > > FreeBSD? > > I was going to wait until zfs-xattr.patch makes it in, since it is usel= ess > > without the zfs-xattr.patch changes. > > tmpfs does not support named attributes, right? That is correct. Only ZFS for now (and maybe forever). > > > > > I could do it sooner, if that makes things easier for people? > > Yes, please > > > > > Btw, I had the semantics for O_NAMEDATTR different from Solaris's > > O_XATTR, but that has been changed now. > > I also have a "runat" command. It can be found at.. > > https://people.freebsd.org/~rmacklem/runat.c > > Thank you :) > > Ced > -- > Cedric Blancher > [https://plus.google.com/u/0/+CedricBlancher/] > Institute Pasteur