Article View: muc.lists.freebsd.fs
Article #5[Bug 298350] Need NFSv4.1 WANT_DELEGATION op support
From: bugzilla-noreply
Date: Wed, 14 Oct 2026 19:54
Date: Wed, 14 Oct 2026 19:54
41 lines
3689 bytes
3689 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298350
--- Comment #5 from Rick Macklem <rmacklem@FreeBSD.org> ---
(In reply to Lionel Cons from comment #4)
Here's the problem..
Process A on client Opens a file for writing. Client gets a write
delegation for the file and writes data to the file cached in the
client.
Process B on client does a SETATTR of mode/acl/owner/owner_group
such that Process A no longer has write access to the file.
If the server doesn't CB_RECALL the delegation, when the cached
data written by Process A is flushed to the server, the writes
fail.
--> As such, the server does the CB_RECALL so that the client
flushes written data to the server before the server does
the SETATTR that disallows write access to Process A.
Note that NFS servers have checked permissions for reads/writes
forever. That's one of the reasons that NFS is not a POSIX compliant
file system.
If RFC-8881 stated that "if a client holds a valid write delegation
for a file, writing must be allowed regardless of file permissions",
then there wouldn't be a need to do the CB_RECALL, but afaik RFC-8881
does not say that. (Some NFSv4 servers might choose to allow this,
but the FreeBSD server currently does not.)
It would be better if the client specified the desired
mode/acl/owner/owner_group in the attribute arguments to the
OPEN and avoided a subsequent SETATTR.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-298350-3630-fGEMvZ0irv@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<bug-298350-3630@https.bugs.freebsd.org/bugzilla/>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.fs Subject: [Bug 298350] Need NFSv4.1 WANT_DELEGATION op support Date: Wed, 14 Oct 2026 19:54:17 +0000 Organization: Newsgate at muc.de e.V. Sender: owner-freebsd-fs@FreeBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <bug-298350-3630-fGEMvZ0irv@https.bugs.freebsd.org/bugzilla/> References: <bug-298350-3630@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="81450"; mail-complaints-to="news-admin@muc.de" X-Original-To: fs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792007657; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KSpHnaEqSze5kHF1QJSS1Dou3Jm5G3eME2GJaufKmjQ=; b=rXKlZ85R2g1DMMpbgwPyTPmnmIpW0ImGiSF5l6gfPYHimWpmKC/wFdMfcCx+b02/m42mv3 XVKntu3+ecu0qjch8a2ns6hMfluHXss78XHIFTZIPXWcWtJwmL0AuqJyg7EGWQi5uQ+YCX svJuJBU84RXcNPBxNBNXV4ap/0Z6nfanpKtYvmlkRtv32ETbnePcR/BfOV7Dls23QiX3ED YlQ4X5b0dXS9gSsOb6YUZ/uth0hbuc4EUu10xUDU3Mrw4je+/fxp00viarybNjqe7xTS7r nMrCzcFSHijHPDJz+xkkn18yHXsVGYZh0wAMxhg0qmMYVGzdxGCIhh3vuZy4Sw== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f In-Reply-To: <bug-298350-3630@https.bugs.freebsd.org/bugzilla/> Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes