From nobody Thu Apr 10 16:52:16 2025 X-Original-To: freebsd-hackers@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 4ZYQqC5SMhz5tB0C for ; Thu, 10 Apr 2025 16:52:55 +0000 (UTC) (envelope-from sebastian.n.feld@gmail.com) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (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 4ZYQqB5rmwz4GL2 for ; Thu, 10 Apr 2025 16:52:54 +0000 (UTC) (envelope-from sebastian.n.feld@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=MNmzkfEX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sebastian.n.feld@gmail.com designates 2a00:1450:4864:20::636 as permitted sender) smtp.mailfrom=sebastian.n.feld@gmail.com Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-ac2dfdf3c38so203261766b.3 for ; Thu, 10 Apr 2025 09:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744303973; x=1744908773; darn=freebsd.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nI6LFs7MMLOWDPJZ6uOCsjK4acR8AbTOXPcrtqIvSng=; b=MNmzkfEXoEbbUDLv5bNdnQ3WzWzfcchKAdtjIyH9k56JupJqqCPynd3oUHF0Zjyz/Z Noj/uORfxj3EfVQSebomdDazzxLNgA4g47vHRBlNq5jANKBBeAlCy87FBoWaro7LvOEk aY9KYaI5lESlH5VlxhO25R2lJ7WK9yOyfTOwjyYUOuDa9L4t7QHxZGJP/r+pDQ/57dew 7sFPfoPc9JyS/dQAg6IFAOI4udgTRRJOHoMMUIYT0aSQVlX949Rh6ZyHnP0LAJZpyS2j V1NS0HPTGEUVw7zTXg9LP+on8hcMATi4bv29FJnWJLL0ktmlK3LRgnS9SSeZYRrXBfmZ rkeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744303973; x=1744908773; h=content-transfer-encoding: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=nI6LFs7MMLOWDPJZ6uOCsjK4acR8AbTOXPcrtqIvSng=; b=RcTjdQCsv5CC40bqgF802b139I4NCB9HLsu+W0w+Uj1PbHbHJmUc/PaW/Vrhrvjj2n cnRDRP39qMy4Q2EoG24wbSRz7K+apeZqhOf5QQa/ZZv3C/g5O1Ss5k2afgQ/X3ivCq2H 67mlqr3+p5mCqNgsY925fTJ8peLcVLI/zJnG06K5hUKeg/Q6uW/VvcaFqjvhUAoQU27E d/Xe9oVCwcQbrwpgqECiCePo60deWRKe3iZhddmnbU1F78rDLg8pG5U56GsCzi39xcdb nauD9rOGODQIGevNI2DkXmBiyPbFsprL8vDx9nbNjgFeiKT4XPNPHGMnjNDjCL73fhHK f+Pw== X-Forwarded-Encrypted: i=1; AJvYcCXkLxAEU45PwK9JziruuhsTtZNjjpy2bCDH6deQpApE1Sl4kdXY55PozlJbd+LwQnpREQBkE9VUOXbrv6Exgfo=@freebsd.org X-Gm-Message-State: AOJu0YyMVTt1bHK0HUwT7UKXlOfPZeDm1ugsSApDzoFVPC0xAunB66vN mRefrBYnS4u9f7DkxqLSkVNinGmMDTS/7OpA8b0qo4FL1U3z8h9hw9rJ6WCXeJadzmbPLzq0bl3 NumzKUHAL17yZ/5rU7UTivLKlo+hBcw== X-Gm-Gg: ASbGncvlO3SshAE4p+/jb/sb3HYmRtwjN7gKTi9inME4hDhFdh11H/liAJO6kFJ9JEC qFSJepHlpfsu6YdGteLsz77QdA4M8qGnnj6ukBsy6dHyjQ3d0EcJrY4RAZDoMgiPp4hnNABlzX0 tMqhD6jD5s7AW/8KdQwgKgbg== X-Google-Smtp-Source: AGHT+IFU8cs6Xxz+7zA0c2fSpyebQvpLvc2CksKnlX0FAGTclf0Q28KA9POWgWjUolBYuzlj+vti4yxRjv04+vH19mE= X-Received: by 2002:a17:907:7d8b:b0:ac7:391a:e157 with SMTP id a640c23a62f3a-acabd4d7b3cmr304136566b.58.1744303972964; Thu, 10 Apr 2025 09:52:52 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Feld Date: Thu, 10 Apr 2025 18:52:16 +0200 X-Gm-Features: ATxdqUHfY1zlpCjEPn55-zb9nutBdmAcprxi5r-ECpgnr9e88-Iz5PLhRDaSQtk Message-ID: Subject: Re: FreeBSD NFSv4.1 nfsd, named attribute support (OPENATTR)? To: Rick Macklem , freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-1.18 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.93)[-0.931]; NEURAL_SPAM_SHORT(0.75)[0.751]; 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]; RCVD_TLS_LAST(0.00)[]; TAGGED_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; TAGGED_RCPT(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::636:from] X-Rspamd-Queue-Id: 4ZYQqB5rmwz4GL2 X-Spamd-Bar: - On Tue, Apr 8, 2025 at 11:38=E2=80=AFPM Rick Macklem wrote: > > On Tue, Apr 8, 2025 at 1:40=E2=80=AFPM Dan Shelton wrote: > > > > On Sat, 8 Mar 2025 at 16:43, Rick Macklem wrot= e: > > > > > > On Sun, Mar 2, 2025 at 3:48=E2=80=AFPM Rick Macklem wrote: > > > > > > > > On Tue, Feb 18, 2025 at 4:14=E2=80=AFPM Lionel Cons wrote: > > > > > > > > > > On Mon, 20 Jan 2025 at 13:15, Lionel Cons wrote: > > > > > > > > > > > > On Sun, 12 Jan 2025 at 16:50, Rick Macklem wrote: > > > > > > > > > > > > > > On Sun, Jan 12, 2025 at 2:09=E2=80=AFAM Cedric Blancher > > > > > > > wrote: > > > > > > > > > > > > > > > > Good morning! > > > > > > > > > > > > > > > > Does FreeBSD NFSv4.1 nfsd support named attributes (e.g. OP= ENATTR), > > > > > > > > per https://datatracker.ietf.org/doc/html/rfc5661#section-5= .3 > > > > > > > > > > > > > > > > ZFS and Solaris UFS support named attributes (via O_XATTR),= does > > > > > > > > FreeBSD do it too? > > > > > > > No. fork files/resource forks (or whatever you choose to call= them) > > > > > > > have been discussed multiple times. > > > > > > > > > > > > > > If I recall correctly, one showstopper was fixing the archive= tools. > > > > > > > There was also the generic argument that Linux doesn't suppor= t them. > > > > > > > Then there was the issue of what VFS/VOP changes were require= d. > > > > > > > (The FreeBSD VFS carries vnode locks across VOP calls and is = at > > > > > > > what I would call a lower level than Solaris.) > > > > > > > --> Which all comes down to who will do the work? > > > > > > > > > > > > > > If I recall correctly, there was a time when a group associat= ed with > > > > > > > CERN needed them to transition away from Solaris. > > > > > > > > > > > > That was my team, and there is still the need to do it. What ke= eps us > > > > > > FRUSTRATED is the lack of progress. Well, and "no", we cannot d= o it > > > > > > ourselves, this is well beyond the expertise my team has. > > > > > > > > > > Does anyone have any suggestions on how to proceed? > > > > The patch found here does the very basics for ZFS (no NFSv4 code ye= t). > > > > https://people.freebsd.org/~rmacklem/xattr.patch > > > I am updating this patch regularly. What is missing are mostly the > > > "don't do this to named attributes" checks for other syscalls. I'll b= e > > > adding those soon. I have done nothing for userland. I am hoping > > > others might step in to help with that. > > > --> I do need opinions w.r.t. what else is needed (if anything) sysca= ll wise. > > > If you want to see this proceed, please test/look at the patches. > > > > > > There is now also a patch for the NFSv4 client/server to use the abov= e. > > > https://people.freebsd.org/~rmacklem/nfs-xattr.patch. > > > > Where does the patch define O_NAMEDATTR or O_XATTR? > The most recent patch assumes that you have up-to-date FreeBSD > main sources, since O_NAMEDATTR is now committed to main. +1 Thank you! Sebi --=20 Sebastian Feld - IT security consultant