diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2010-01-12 16:41:43 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2010-01-15 14:55:51 -0500 |
commit | d89f50b2902305020a8e5d63ddc0b024679a1fc1 (patch) | |
tree | dae68b1082437a54a5ffdb3435cb0402dac8aa99 /utils/statd/sm-notify.c | |
parent | 1c0f9045bf479f38ec39ffa5c6a4c77a8fcabda8 (diff) | |
download | nfs-utils-d89f50b2902305020a8e5d63ddc0b024679a1fc1.tar.gz nfs-utils-d89f50b2902305020a8e5d63ddc0b024679a1fc1.tar.xz nfs-utils-d89f50b2902305020a8e5d63ddc0b024679a1fc1.zip |
libnsm.a: Add RPC construction helper functions
To manage concurrency, both statd and sm-notify construct raw RPC
requests in socket buffers, and use a minimal request scheduler
to send these requests and manage replies. Both statd and sm-notify
open code the RPC request construction.
Introduce helper functions that can construct and send raw
NSMPROC_NOTIFY, NLM downcalls, and portmapper calls over a datagram
socket, and receive and parse their replies. Support for IPv6 and
RPCB_GETADDR is featured. This code (and the IPv6 support it
introduces) can now be shared by statd and sm-notify, eliminating
code and bug duplication.
This implementation is based on what's in utils/statd/rmtcall.c now,
but is wrapped up in a nice API and includes extra error checking.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'utils/statd/sm-notify.c')
0 files changed, 0 insertions, 0 deletions