From nobody Fri Apr 11 06:40:00 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 4ZYnBX0YDzz5shZk for ; Fri, 11 Apr 2025 06:40:52 +0000 (UTC) (envelope-from cedric.blancher@gmail.com) Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (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 4ZYnBW0XG1z3GN7 for ; Fri, 11 Apr 2025 06:40:51 +0000 (UTC) (envelope-from cedric.blancher@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=E7uB0t27; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of cedric.blancher@gmail.com designates 2607:f8b0:4864:20::632 as permitted sender) smtp.mailfrom=cedric.blancher@gmail.com Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-22438c356c8so18976865ad.1 for ; Thu, 10 Apr 2025 23:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744353649; x=1744958449; 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=VCwWymdRgcg63jtABO5HdssSyrCHLX7M4fAHjLrcT0U=; b=E7uB0t27gb/jysxSjseHb8QA3WHpIVT/T4iKjc5a75i0LHNxfjucJiDgQQNq3GUCN7 5BsSCsRFhjfODf1joJqUBrwZly1TAhKKZezdq3qsA10KLrRQgpw1w89IiUlOIoE7PqIA h95MhKUR+Z6YhS/BqUXes9f6aztYhpOkpctS1a/ZVXU34I3yLGjlfAmS+LgJbSlq1tDV hOKTfgghZXYpK4/nuud1h+r0HKrgtEj1A/iH65PdG3x7xKAZ9nybSa4DvitAWT8eF3nX knEOun56YMEnmgAq0LO6BBE3FTOlisUhh4eSUK8LFKl6NfIz5o6iOIPPglqW+wg2iK9r a7Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744353649; x=1744958449; 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=VCwWymdRgcg63jtABO5HdssSyrCHLX7M4fAHjLrcT0U=; b=TJVK4nO3jtuSrhc+LlzzSgZoPJpyqEhydHEkXZV9CLmwcKU+j+omQO/Hc/cGIiaQ8p LKphvF2/7qq8ZuJoAwaAnWdHFnx+/uCVVgrMDx3/ap6GAzQ1N6lIHJQ3NN+heaaqF/gQ 78ACgK7Ceuh2MciaUTJ6yw5C79n1VVt4IcrwsyLWEdkraGKqAGQ7Yj64NEKzDdMuYDKM aqzsG+S+3IhCNZGxEHWF44xqJLM2gxt3JLfF3mZznAm+9eWX8wdOF52SXkF0ZtNjVK9J 0B3zQMckvmnE3KNst7K8arQIFf7wGFao2p3Kw4pWzOtYU0ycspngINAc3dwLDK+AZl6T JBbg== X-Forwarded-Encrypted: i=1; AJvYcCUkyUVO3wfL25/UhWPFm+HGXFY0pg5jg2t7nFFtpiKG+hsHWMaRVyl/5QpoYX+0gDvCKyzOZmg3CXWtTTHpStk=@freebsd.org X-Gm-Message-State: AOJu0YwGfNXD7XgJ+HKbYI33vALguAyV3WQ4MRB/9tNgbkSYlD+M4wV8 rIOc7c5YOfKt56HCMOIRyR0lSfYV3XJb9nKw1ro5s9426vC6hC8p/3nmuUMhZTtzErrxRgD6dqy eLXXS6ChHZ4NsVJVwz+CaHooSUsI= X-Gm-Gg: ASbGncshe2BJdN+AEkvZBNIi7Vh9qZi8DcH6489iKdAcSfljsxRdCWTUYp3V/XuY17L TS3wmlGlWrUmMViFxWoDfMp4HNx9L4nbWs2RFE81+NLhf1EIfAu9wi8PSvYzygNPywwtZDSKek3 jfQ3W1xzPSlxqrC4tvobfqLed/xMazvfotOQ== X-Google-Smtp-Source: AGHT+IFOkOCH5yNFrAXGENE/SDFxlY6/B+l1f8eehB+LOZgvBAKCwaIxLJYejPyVM/KAr+tle67AJDj9FYll3B6k4oA= X-Received: by 2002:a17:90b:2b4d:b0:2ff:6488:e01c with SMTP id 98e67ed59e1d1-308237cde0amr2826048a91.29.1744353649328; Thu, 10 Apr 2025 23:40:49 -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: Cedric Blancher Date: Fri, 11 Apr 2025 08:40:00 +0200 X-Gm-Features: ATxdqUGQjpK4WzZiBF-R2vK8w-xPNmPD5sUDwZ6duha-j2xiKotkDa4OiAa1WJs Message-ID: Subject: Re: FreeBSD NFSv4.1 nfsd, named attribute support (OPENATTR)? To: Rick Macklem Cc: Dan Shelton , freebsd-hackers@freebsd.org, Lionel Cons Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-1.99 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.01)[0.008]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_TO(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::632:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; 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:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-Rspamd-Queue-Id: 4ZYnBW0XG1z3GN7 X-Spamd-Bar: - On Wed, 9 Apr 2025 at 16:30, Rick Macklem wrote: > > On Wed, Apr 9, 2025 at 1:29=E2=80=AFAM Cedric Blancher > wrote: > > > > 1. Which tag in https://github.com/freebsd/freebsd-src should I check > > out for building? > Don't use any tag, just > git clone https://github.com/freebsd/freebsd-src > (I'm not a git guy, so I don't even know what tags are used for, but the = most > recent is dated Mar., which would be before the commit.) > > Alternately, if you are doing a fresh install to do testing, just wait > a couple of > days for a new snapshot to show up (I'm not certain that what is there no= w > has the commit) and install src when you install off it.) > On FreeBSD, snapshots install like releases, but consist of recent unrele= ased > code. If you go onto ftp.freebsd.org as anonymous ftp, they can be found = in > pub/FreeBSD/snapshots/ISO-IMAGES/15.0 (and dates are in the file names > and ones newer than Apr. 3 should be there around Thurs.) > For x86-64, you'll want one with "amd64" in the name. I use the one with = "disc1" > in the name, which is a full install ISO. > > > 2. What is better - O_NAMEDATTR or O_NAMEDATTRS? > I used O_NAMEDATTR, but if others seem to think O_NAMEDATTRS is better, > it could change at this early stage. > > > 3. Which preprocessor symbol will enable O_NAMEDATTR? _GNU_SOURCE=3D1? > It is under __BSD_VISIBLE, which is set by default on FreeBSD. > > > 4. Could you also add an alias define #define O_XATTR (O_NAMEDATTR)? > I chose not to call it O_XATTR for two reasons: > 1 - To try and avoid confusion with the Linux style extended attributes a= lready > in FreeBSD > 2 - Because the semantics might not be exactly the same as Solaris. I am = still > working on getting Solaris installed for interop testing, etc. > If I were to create an alias I think that would subvert #2. > Anyone can easily define such a thing if they have Solaris source code an= d > want to try testing it. (If it turns out that #define O_XATTR O_NAMEDATTR > makes most/all Solaris code work, maybe it could be defined under > some Solaris define in fcntl.h?) > > > 5. Testing bash has support for O_XATTR, that might help with testing > Sorry, no idea what this means? bash5 has O_XATTR support since Solaris added named attributes. That can be used for testing. Try cd -@ myfile with bash5 on Solaris or Illumos. Same should work on FreeBSD if bash5 gets compiled with "CFLAGS=3D-DO_XATTR=3DO_NAMEDATTR" Ced --=20 Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur