linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: NFSD administrative interface to prevent offering NFSv4 delegation
@ 2025-11-04 15:54 Chuck Lever
  2025-11-09 18:57 ` Benjamin Coddington
  0 siblings, 1 reply; 4+ messages in thread
From: Chuck Lever @ 2025-11-04 15:54 UTC (permalink / raw)
  To: Linux NFS Mailing List; +Cc: Linux FS Devel

NFSD has long had some ability to disable NFSv4 delegation, by disabling
fs leases.

However it would be nice to have more fine-grained control, for example
in cases where read delegation seems to work well but the newer forms
of delegation (directory, or attribute) might have bugs or performance
problems, and need to be disabled. There are also testing scenarios
where a unit test might focus specifically on one type of delegation.

A little brainstorming:

* Controls would be per net namespace
* Allow read delegations, or read and write
* Control attribute delegations too? Perhaps yes.
* Ignore the OPEN_XOR_DELEG flag? Either that, or mask off the
  advertised feature flag.
* Change of setting would cause immediate behavior change; no
  server restart needed
* Control directory delegations too (when they arrive)

Is this for NFSD only, or also for local accessors (via the VFS) on the
NFS server?

Should this be plumbed into NFSD netlink, or into /sys ?

Any thoughts/opinions/suggestions are welcome at this point.


-- 
Chuck Lever


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-11-10 13:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-04 15:54 RFC: NFSD administrative interface to prevent offering NFSv4 delegation Chuck Lever
2025-11-09 18:57 ` Benjamin Coddington
2025-11-09 20:47   ` Chuck Lever
2025-11-10 13:33     ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).