All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Create shared API to access on-disk NSM data
@ 2010-01-08 18:13 Chuck Lever
       [not found] ` <20100108180144.452.14970.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Chuck Lever @ 2010-01-08 18:13 UTC (permalink / raw)
  To: steved; +Cc: chris.mason, linux-nfs

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

-- 
Chuck Lever <chuck.lever@oracle.com>

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

end of thread, other threads:[~2010-01-12 12:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-08 18:13 [PATCH 0/3] Create shared API to access on-disk NSM data Chuck Lever
     [not found] ` <20100108180144.452.14970.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-01-08 18:13   ` [PATCH 1/3] libnsm.a: Introduce common routines to handle persistent storage Chuck Lever
2010-01-08 18:13   ` [PATCH 2/3] statd: Use the new nsm_ file.c calls in sm_notify Chuck Lever
2010-01-08 18:13   ` [PATCH 3/3] statd: Use the new nsm_ file.c calls in rpc.statd Chuck Lever
2010-01-12 12:25   ` [PATCH 0/3] Create shared API to access on-disk NSM data Steve Dickson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.