Create shared API to access on-disk NSM data
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | libnsm.a: Introduce common routines to handle persistent storagesupport/ support/ support/ +1 more | +886 | 0 replies | |
| 2/3 | statd: Use the new nsm_ file.c calls in sm_notifyutils/ | +63 | 0 replies | |
| 3/3 | statd: Use the new nsm_ file.c calls in rpc.statdutils/ utils/ utils/ +1 more | +57 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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]>