Skip to content

NFS: Add client side support for CB_NOTIFY

Anna Schumaker linux-nfs 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v34 patches 0 repliesSuperseded
  3. v24 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches0 repliesSuperseded

Changes in v4 from the cover letter

* Properly handle negative dentries

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4NFS: Add an outline for the CB_NOTIFY operationfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/callback_xdr.c +2 more+80 -20 replies
2/4NFS: Add support for CB_NOTIFY4_REMOVE_ENTRYfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/callback_xdr.c +2 more+147 -30 replies
3/4NFS: Add support for CB_NOTIFY4_ADD_ENTRYfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/callback_xdr.c +3 more+175 -180 replies
4/4NFS: Add support for CB_NOTIFY4_RENAME_ENTRYfs/nfs/callback.h fs/nfs/callback_proc.c fs/nfs/callback_xdr.c +2 more+38 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/4] NFS: Add client side support for CB_NOTIFY

From: Anna Schumaker <[email protected]>

These patches add support for the CB_NOTIFY callback operation from NFS servers. Editing directory order or placement in our caches isn't easy or practical the way things are structured now. Instead, I use CB_NOTIFY as an indication that the client needs to refresh its view of the directory.

Changes in v4:
* Properly handle negative dentries

Changes in v3:
* Change NOTIFY4_REMOVE to create a negative dentry

Changes in v2:
* Fix signed / unsigned type mixups
* Don't try to share lookup code between NOTIFY4_REMOVE and NOTIFY4_ADD
* Add handling for the NOTIFY4_ADD 'na_have_old_entry' case

Thoughts?
Anna

Anna Schumaker (4):
NFS: Add an outline for the CB_NOTIFY operation
NFS: Add support for CB_NOTIFY4_REMOVE_ENTRY
NFS: Add support for CB_NOTIFY4_ADD_ENTRY
NFS: Add support for CB_NOTIFY4_RENAME_ENTRY

 fs/nfs/callback.h      |  51 ++++++++++++
 fs/nfs/callback_proc.c | 160 +++++++++++++++++++++++++++++++++++++
 fs/nfs/callback_xdr.c  | 175 ++++++++++++++++++++++++++++++++++++++++-
 fs/nfs/nfs4_fs.h       |   2 +
 fs/nfs/nfs4xdr.c       |  33 +++++++-
 include/linux/nfs4.h   |   6 ++
 6 files changed, 422 insertions(+), 5 deletions(-)
Signature · 1 line
2.55.0