OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-263-g77eb172

Gerrit Code Review gerrit@openafs.org
Fri, 12 May 2023 13:08:02 -0400


The following commit has been merged in the master branch:
commit 77eb1728331e0825ecb6fbe29db334c61b5276d0
Author: Michael Meffie <mmeffie@sinenomine.net>
Date:   Wed Aug 31 13:41:30 2022 -0400

    Add command fallback to server config
    
    Add an initialization retry in the bos, vos, and pts commands to
    fallback to the server configuration directory when initialization fails
    with the client configuration directory.  This allows admins to run
    unauthenticated bos, vos, and pts commands on servers without a client
    configuration (including symlinks created by the bosserver) without
    any extra command line options.
    
    Perform the initialization retry only when the -localauth or -config
    options are not given.  The bos, vos, and pts commands already use the
    server configuration path when the -localauth option is given, so there
    is no point in retrying the same path.  The vos and pts -config option
    specifies the path to be used, so we do not fallback to a different
    directory when the user specifies the configuration path to be used.
    
    While here, change the scope of the confdir variable in vos.c from a
    global to a local variable, since it is only used within the
    MyBeforeProc() function.
    
    This change does not add a vsu_ClientInit() retry in the bos salvage
    command. That command always requires authorization, so when run without
    -localauth requires a token (and therefore a cache manager and client
    cell configuration).
    
    Update the bos, vos, and pts man pages to describe this new fallback
    method to lookup the configuration directory.  (The AFSCONF environment
    variable and .AFSCONF files are currently undocumented in the man pages.
    They should be documented or removed from the code in a future change.)
    
    Change-Id: I55c3109494db744e7bc2defcb54eaee3b4e30018
    Reviewed-on: https://gerrit.openafs.org/15351
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Andrew Deason <adeason@sinenomine.net>
    Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

 doc/man-pages/pod1/pts.pod    | 22 ++++++++++++++++++++--
 doc/man-pages/pod1/vos.pod.in | 18 ++++++++++++++++++
 doc/man-pages/pod8/bos.pod    |  4 ++++
 src/bozo/bos.c                | 12 ++++++++++--
 src/ptserver/pts.c            | 21 ++++++++++++++++-----
 src/volser/vos.c              | 20 ++++++++++++++------
 6 files changed, 82 insertions(+), 15 deletions(-)

-- 
OpenAFS Master Repository