From nobody Tue Mar 24 02:55:34 2026 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 4ffvnH0dSyz6Vxq9 for ; Tue, 24 Mar 2026 02:56:19 +0000 (UTC) (envelope-from dan.f.shelton@gmail.com) Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (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 4ffvnF5slMz49VR for ; Tue, 24 Mar 2026 02:56:17 +0000 (UTC) (envelope-from dan.f.shelton@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20251104 header.b=FcBt4V+L; dmarc=pass (policy=none) header.from=gmail.com; arc=pass ("google.com:s=arc-20240605:i=1"); spf=pass (mx1.freebsd.org: domain of dan.f.shelton@gmail.com designates 2a00:1450:4864:20::131 as permitted sender) smtp.mailfrom=dan.f.shelton@gmail.com Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-5a0faa0d15cso4650078e87.0 for ; Mon, 23 Mar 2026 19:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774320971; cv=none; d=google.com; s=arc-20240605; b=BCbal/vB3/i4YQEJMMzh2IBC+wLh7pIagFfwF4k9SbiQZp4eZ/1eH7K49/vVCHw76R wAKsJzs4mpwspjjmGhUXiIHgN48z+C2lsCCCHWMEKadPLAqM2KO39lePttQ0sQXM9sc9 /ZbkGEh9PM9fBAXI+jXiDWVqC7qf4JwduR72Emo4xaLxegcfKVTzALpSR029dosv8Vli Ga3RJjpQn7aZ3d6k/KalP0IbjmjG4MxaBlrtPKAtUzU8MxiaAl23DikwxQuN414B5+UZ t1blIPf8D9L4bIBZEphftsy2pXACmqc+Xi6nSO6Rsd6w+Z5F4InRKGJp9Qj/9WBq/rCj P45A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OxnKKhaP4Tjcl+qp9yqOe8sdstGZDMefToXoPn4yvVs=; fh=IQuqB8QqxgE6FkqIzrmoPD6yiy5zGaGs48giHLnepEw=; b=a/Zt7hlplZwpCNPxFL5lmK2LSslq9/A2GnHIXL4V6ZpDqJqQiDNWJGvE4bm3ofEP42 tHzQfHVmZNRaIsDObaNU91z/yO9k0FpMZaSWjMU58jlcGzmAhvuY6X9MzznxjOa+TROh oAOXsAyiBkI0lidU7Eim2tkHgZ4EAzt/b6XskIxX8BUyeQK3Dn9yiJa4dBKNyPCxJ1Yg BtrxZ8is+DfM1ZMqEwHLOyadip886xFnuo91rrmSznqmuBOr7iq6+uHyUjvjC+fadpxV RWSASJHmiIX2zUJGI5vBBwxpjp/Iv8SjEm6LEDJjQCyACHC0oXkNLQcUkSd9jNnHBCLD xlOg==; darn=freebsd.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774320971; x=1774925771; 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=OxnKKhaP4Tjcl+qp9yqOe8sdstGZDMefToXoPn4yvVs=; b=FcBt4V+LDiTO72dJD/fzF7jwHSWKejaq8wzqhXRc4rEdQl05zVMLG7AgYTU2GErGAP alF39f+aE+e9+AtLIg1Pmyq7r9LYoCcssoFEYYjMvLZ3QW9ABmKBTB2efUyu3o8ycY6j Gt4MkaCFF1KhQOEYrJ6SsAN6EviUm65Fiit6XLMEH7zLXYuW7Ts6hh9y8JjyohVbusIq FyWWocacqZZRYiofXeziX4qNsvJPRJHGBZUm0U0AdK2Ozg6/BflPpJ92uOqlckVa3GAf UjGn2Db/inCsiH2SrwR2cV/8wHvC6a4sG8Xsu+Iva4lTPRdp/10RzfkkZnp7+siAkVfq q/7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774320971; x=1774925771; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=OxnKKhaP4Tjcl+qp9yqOe8sdstGZDMefToXoPn4yvVs=; b=Hp5BT7qo0JD+DLqkxEseIapW9yStGFaWEo/UejIIoXLUVfhRWTf5hj3HWmD4Kp7YTQ r/pSJIzWqkwM9CKAIFOVFUmj7pODLDBNryF3MjmXam64XwSyBVcj2kFbCvZFqITdAkVA yhslPhWhDBXCF6Y/0njlyr9bRhERADmPxb3wTHFQ0fM/06mNr4GEG3cecoIzWDXJtIgk dVbImJlDop5c8xQFy5Ql92qTQSPNaEoNVnn9YdbsC1+mB19rQnDlnSOjcPBvwNhtCKEh WtD88lw3ye8XuFfM0J3k1kIspgMO4iyhxsH4o6UiiRkMjodlrZQAk0c6UY63f26zsRXL osPQ== X-Gm-Message-State: AOJu0YyDCGr31hQnY2Yz7Q0DGIhmoCDlxaOHNFDnlTbjnYyGGMfQz+qH R1wxTREjr9+JhP7aWz7XENbKhteoLvEfTHqERC7vh0eQj+2pNySpkk691NJf1ADmQTp5wEl8GxC XOS0ZElDHzgbQiCOlHiuYfJuxOeRyUQAsxcJ7 X-Gm-Gg: ATEYQzxC9QLHZvpvpOCh2hezZvVOvmfZkQa5gCAyC0SamseiYjBdaNIYNw4O2B42k5S lQi7E13b81L+N4za87FdWNIc8vhdaw0KkS2+sTBzZmW3rHbK81sU4H+ibDIhR2QswV5GoWElovr nUQ3vsdeCkqk4P19sBcZSB0NL3EaQxI0oR17ykb3gloz7baGFVKzUl405owYallcwA+leR12M/p OwQoiuXRoaewPvmfuVprGdP+TX5P6p9UOFFsjp63vh2Ozmtl3c5+B03uevye+xG5h8H5EXrRxzB yPTStQ== X-Received: by 2002:a05:6512:39d3:b0:5a1:40bd:48d5 with SMTP id 2adb3069b0e04-5a285af5773mr3904291e87.9.1774320970667; Mon, 23 Mar 2026 19:56:10 -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: Dan Shelton Date: Tue, 24 Mar 2026 03:55:34 +0100 X-Gm-Features: AQROBzD6IY6bbmGz2PqomaAhaZrbts4O20jHBJqikgxwX7s2lXc8uij2nhtE2BE Message-ID: Subject: Re: [Ms-nfs41-client-devel] FreeBSD-16.0-CURRENT-amd64-20260224: NFSv4.2 on Windows: mkdir fails, touch works To: freebsd-hackers@freebsd.org, ms-nfs41-client-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-4.77 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[google.com:s=arc-20240605:i=1]; NEURAL_HAM_SHORT(-0.77)[-0.767]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20251104]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TAGGED_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::131:from] X-Rspamd-Queue-Id: 4ffvnF5slMz49VR X-Spamd-Bar: ---- On Tue, 17 Mar 2026 at 01:29, Rick Macklem wrote: > > On Mon, Mar 16, 2026 at 3:23=E2=80=AFPM Dan Shelton wrote: > > > > On Thu, 12 Mar 2026 at 00:20, Rick Macklem wro= te: > > > > > > On Mon, Mar 9, 2026 at 4:36=E2=80=AFPM Rick Macklem wrote: > > > > > > > > On Mon, Mar 9, 2026 at 9:43=E2=80=AFAM Roland Mainz wrote: > > > > > > > > > > On Sat, Mar 7, 2026 at 10:28=E2=80=AFPM Rick Macklem wrote: > > > > > > > > > > > > On Sat, Mar 7, 2026 at 9:27=E2=80=AFAM Dan Shelton wrote: > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > some odd issue with FreeBSD 16.0-CURRENT main-n284403-895a97c= 875a0 > > > > > > > (installed from > > > > > > > FreeBSD-16.0-CURRENT-amd64-20260224-16822dac32ab-284159-disc1= .iso) and > > > > > > > ms-nfs41-client: > > > > > > > $ /sbin/nfs_mount -o rw 'F:' 'nfs://42.28.16.228//nfsdata' > > > > > > > Successfully mounted '42.28.16.228@NFS@2049' to drive 'F:' > > > > > > > $ cd /cygdrive/f/dsheldon/tmp/freebsdtests > > > > > > > > > > > > > > $ touch x > > > > > > > $ mkdir y_dir > > > > > > > mkdir: cannot create directory =E2=80=98y_dir=E2=80=99: Permi= ssion denied > > > > > > > > > > > > > > I tried this: > > > > > > > $ chmod a+rwx . > > > > > > > $ mkdir y_dir > > > > > > > mkdir: cannot create directory =E2=80=98y_dir=E2=80=99: Permi= ssion denied > > > > > > > > > > > > > > > > > > > > > No ACLs involved. > > > > > > > The same setup works with FreeBSD 15.0. > > > > > > > > > > > > > > How can I debug this, or is this a known issue? > > > > > > Hmm. I don't think anything has changed for mkdir between > > > > > > 15.0 and man/16 in the NFS server code. > > > > Yep, the change was that FreeBSD16 supports Archive, but didn't > > > > handle setting it when doing a CREATE operation. > > > > > > > > > > > > > > > > - If the mkdir request (actually MKNOD in NFSv4) specifies > > > > > > an owner or owner_group, the permissions are checked as follo= ws: > > > > > > - For setting owner to anything other than the uid of the cal= ler in > > > > > > the RPC request's credentials, the caller must be root and = the > > > > > > file system exported -maproot=3Droot. > > > > > > - For setting an owner_group, the gid owner_group maps to must > > > > > > be in the gid list of the RPC's credentials. > > > > > > > > > > > > I'd suggest you capture packets when the mkdir fails and then.. > > > > > > - Either look at them in wireshark yourself and see what attrib= utes > > > > > > are being set by the operation. In particular, check for any = ACL > > > > > > being specified (I know you said ACLs are not involved, but..= ) > > > > > > along with OWNER and OWNER_GROUP. > > > > > > or > > > > > > - Make the packet capture available to me and I'll look at it. > > > > > > > > > > > > I suspect the NFS4ERR_PERM is being generated because of > > > > > > the attributes being set by the MKNOD operation and I suspect > > > > > > there is some difference between how you have 15.0 configured > > > > > > and main/16 configured. > > > > > [snip] > > > > > > > > > > It seems to be an issue with |FATTR4_ARCHIVE| ... I filed > > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293691 ("NFSv= 4.1 > > > > > client trying to set |FATTR4_ARCHIVE| gets EPERM for file/dir cre= ation > > > > > attempts") for this, and added > > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D292283 ("Bug = 292283 > > > > > - (JAVA) NFSv4.1 client trying to set FATTR4_SYSTEM or FATTR4_HID= DEN > > > > > gets EPERM for file and dir creation attemps") as reference since= the > > > > > same kind of workaround seems to work. > > > > > > > > > > Next release for ms-nfs41-client includes a workaround (see > > > > > https://github.com/kofemann/ms-nfs41-client/commit/7156d9f9deb258= 43e57fd455d8ec67951b82c737) > > > > > which should avoid this bug, but I will remove that workaround as= soon > > > > > as a fixed release version of FreeBSD will become available... > > > > I've put a patch on this FreeBSD PR and am attaching it here. > > > Dan, can you test the patch and let us know if it works for you? > > > > https://bz-attachments.freebsd.org/attachment.cgi?id=3D268667 works, an= d > > fixes the bug. > > > > Could you send a comment around when the next iso for FreeBSD > > 16.0-CURRENT comes out with that bugfix, please? > The patch is now committed to main/16.0-current, so any snapshot > generated after to-day should have it. > (They are typically generated once per week on Thursdays.) Is this fix included in https://download.freebsd.org/snapshots/ISO-IMAGES/16.0/FreeBSD-16.0-CURRENT= -amd64-20260316-e6083790f217-284522-disc1.iso > > Thanks for testing it, rick Thank you for fixing this! Dan --=20 Dan Shelton - Cluster Specialist Win/Lin/Bsd