• David Howells's avatar
    afs: Don't leave DONTUSE/NEWREPSITE servers out of server list · d3acd81e
    David Howells authored
    Don't leave servers that are marked VLSF_DONTUSE or VLSF_NEWREPSITE out of
    the server list for a volume; rather, mark DONTUSE ones excluded and mark
    either NEWREPSITE excluded if the number of updated servers is <50% of the
    usable servers or mark !NEWREPSITE excluded otherwise.
    
    Mark the server list as a whole with a 3-state flag to indicate whether we
    think the RW volume is being replicated to the RO volume, and, if so,
    whether we should switch to using updated replication sites
    (VLSF_NEWREPSITE) or stick with the old for now.
    
    This processing is pushed up from the VLDB RPC reply parser to the code
    that generates the server list from that information.
    
    Doing this allows the old list to be kept with just the exclusion flags
    replaced and to keep the server records pinned and maintained.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    cc: Marc Dionne <marc.dionne@auristor.com>
    cc: linux-afs@lists.infradead.org
    d3acd81e
vlclient.c 19.4 KB