]> git.decadent.org.uk Git - nfs-utils.git/commit - utils/statd/hostname.c
statd: statd fails to monitor if no reverse mapping of mon_name exists
authorChuck Lever <chuck.lever@oracle.com>
Tue, 24 Aug 2010 11:16:10 +0000 (07:16 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 24 Aug 2010 11:22:52 +0000 (07:22 -0400)
commite22f5a9c8e53a2373e8a939771e964ad315cdc5f
treedd319eeeb7666f271362571042e90b9faf1525dc
parent1bb84a09ff58d1314826945db2f3f1f63015e263
statd: statd fails to monitor if no reverse mapping of mon_name exists

Commit 8ce130c4 switched in the new statd_canonical_name() function
that constructs a "unique" name statd can use to uniquely identify a
monitor record.

The legacy statd would monitor a client that sent an IP address with
no reverse map as its caller_name.  To remain bug-for-bug compatible,
allow this case in the new statd.

This shouldn't be a problem: statd_canonical_name() needs to create
a unique name for the monitored host so it can keep track of monitor
requests from the same remote.  The IP address itself should work as
well as the host's canonical name, in case there is no reverse
mapping.

We still enforce the requirement that a mon_name that is a DNS name
must have a forward map to an IP address.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/statd/hostname.c