summaryrefslogtreecommitdiffstats
path: root/utils/showmount
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2011-09-19 14:23:54 -0400
committerSteve Dickson <steved@redhat.com>2011-09-20 07:33:03 -0400
commit10e9c07a18d7c8635def61ea19adbc47f2934853 (patch)
tree8fbace186b1768753f7dbcb2858ffc997fbe812d /utils/showmount
parent445082926141a116c9e93f9ccdd81039c5a2841b (diff)
downloadnfs-utils-10e9c07a18d7c8635def61ea19adbc47f2934853.tar.gz
nfs-utils-10e9c07a18d7c8635def61ea19adbc47f2934853.tar.xz
nfs-utils-10e9c07a18d7c8635def61ea19adbc47f2934853.zip
sm-notify: sm-notify leaves monitor records in sm.bak
sm-notify fails to remove monitor records from sm.bak when it has finally notified a host. This is because of a recent change to send two SM_NOTIFY requests for each monitored peer: one with the local host's FQDN, and one with an unqualified version of same. This was commit baa41b2c: "sm-notify: Send fully-qualified and unqualified mon_names" (March 19, 2010). Because of the March 2010 commit, sm-notify modifies the "my_name" string during notification, but then uses this modified string to try to find the monitor record to remove. Of course the search for the record fails. So a persistent monitor record is left in sm.bak. Aside from leaving trash around, this causes the same hosts to be notified after every reboot, even if they successfully responded to the previous SM_NOTIFY and they had no contact with us during the last boot. I also noticed that the trick of truncating the argument of SM_NOTIFY doesn't work at all if a substitute "my_name" was specified via the "-v" command line option. This patch attempts to address that as well. sm-notify should preserve the original my_name string so that nsm_delete_host() can find the correct monitor record to delete. Also add some degree of protection to the mon_name and my_name strings in each nsm_host record to prevent a future change from breaking this dependency. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/showmount')
0 files changed, 0 insertions, 0 deletions