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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux