On Thu, May 4, 2023 at 8:56 AM Benjamin Coddington <bcodding@xxxxxxxxxx> wrote: > > On 21 Apr 2023, at 14:27, Anna Schumaker wrote: > > > From: Anna Schumaker <Anna.Schumaker@xxxxxxxxxx> > > > > And add some basic checking so we only enable features that are present > > in a given NFS version. > > > > Signed-off-by: Anna Schumaker <Anna.Schumaker@xxxxxxxxxx> > > --- > > This is great, I like how you've kept the +/- notation similar to knfsd > supported versions. > > Another way to do this would be an attribute file per capability, setting it > to 0 or 1 which is more inline with sysfs usage. > > I think if we do use this, we ought to leave readdir plus out of it because > there's already a mount option for it. Readdir plus can be turned on and > off with a remount already. The issue for me would be how to work out what > the behavior should be when we have a mount that has "nordirplus" and then > someone tries to toggle it via sysfs. That makes sense! > > Any other thoughts? I guess if we remove the readdir plus option, then we could make it so this file only shows up on v4.2 mounts. > > I'll add this patch to my future postings of sysfs work. Do you want a v2 without the readdir plus line, and with the v4.2 restriction? Anna > > Ben >