OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-22-g91378d9

Gerrit Code Review gerrit@openafs.org
Thu, 5 Dec 2024 11:42:35 -0500


The following commit has been merged in the master branch:
commit 91378d93b9dbaf8e7ae8b3d0f655de63397cd545
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Mon Nov 11 16:16:33 2024 -0600

    rx: Don't send packets to localhost if -rxbind set
    
    For some platforms (SOLARIS, FBSD), shutting down the libafs client
    currently involves sending a packet to localhost to wakeup the listener
    thread. If rx is bound to a specific host address (the -rxbind option
    was passed to afsd), this won't work, because rx won't receive packets
    sent to localhost. This results in the client hanging forever when
    trying to 'umount afs', until a packet is otherwise sent to the rx
    socket.
    
    To fix this, send the packet to the bound host address instead, if
    -rxbind was given. Otherwise, send the packet to localhost, like before.
    
    Introduce the small helper function rxi_GetLocalAddr() to consolidate
    the logic of what address to use.
    
    Change-Id: I26fa5194b726ed753779faa07142fec647228b44
    Reviewed-on: https://gerrit.openafs.org/15906
    Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
    Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
    Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
    Tested-by: Andrew Deason <adeason@sinenomine.net>

 src/rx/FBSD/rx_knet.c    |  3 +--
 src/rx/SOLARIS/rx_knet.c |  3 +--
 src/rx/rx.c              | 22 ++++++++++++++++++++++
 3 files changed, 24 insertions(+), 4 deletions(-)

-- 
OpenAFS Master Repository