Skip to content

Create shared API to access on-disk NSM data

Chuck Lever linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libnsm.a: Introduce common routines to handle persistent storagesupport/include/Makefile.am support/include/nsm.h support/nsm/Makefile.am +1 more+886 -10 replies
2/3statd: Use the new nsm_ file.c calls in sm_notifyutils/statd/sm-notify.c+63 -2250 replies
3/3statd: Use the new nsm_ file.c calls in rpc.statdutils/statd/misc.c utils/statd/monitor.c utils/statd/statd.c +1 more+57 -2460 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Create shared API to access on-disk NSM data

The goal of these patches is to replace duplicate code in statd and sm-notify that accesses the local NSM state number and the on-disk monitor and notify lists. This change allows us to fix bugs and add IPv6 support in one place instead of two.

There should be little behavioral change, since the new code in libnsm.a is by and large copied from existing code in statd and sm-notify. Some error checking is enhanced. The sync(2) system call done after an NSM state number update is removed, since the update is already performed with POSIX file system calls that are all synchronous with permanent storage.

---

Chuck Lever (3):
statd: Use the new nsm_ file.c calls in rpc.statd
statd: Use the new nsm_ file.c calls in sm_notify libnsm.a: Introduce common routines to handle persistent storage

 support/include/Makefile.am |    2 
 support/include/nsm.h       |   64 +++
 support/nsm/Makefile.am     |    2 
 support/nsm/file.c          |  819 +++++++++++++++++++++++++++++++++++++++++++
 utils/statd/misc.c          |   24 -
 utils/statd/monitor.c       |  140 ++-----
 utils/statd/sm-notify.c     |  288 +++------------
 utils/statd/statd.c         |  116 +-----
 utils/statd/statd.h         |   23 -
 9 files changed, 1006 insertions(+), 472 deletions(-)
 create mode 100644 support/include/nsm.h
 create mode 100644 support/nsm/file.c
Signature · 1 line
Chuck Lever <[email protected]>