The following commit has been merged in the master branch:
commit 4c33820525af510a8a937289005e39d5b6683b19
Author: Michael Meffie <[email protected]>
Date:   Mon Aug 17 15:44:55 2020 -0400

    vldb_check: Check for volume lock inconsistencies
    
    Verify the a lock timestamp is set if, and only if, a lock volume
    operation flag is also set.
    
    When running vldb_check with the -fix option, fix the inconsistent
    entries by setting the lock timestamp to the current time if a lock flag
    is set, or by setting the VLOP_DELETE flag if the lock timestamp is set
    but no lock flags are set. (The VLOP_DELETE flag is the flag set by the
    'vos lock command, and is shown in vos output as "delete/misc".)
    
    Volume lock fields can be put into an inconsistent state, at least, by
    interupted vos rename operations, due to bugs in vos rename. When the
    volume lock timestamp and lock flags are in this inconsistent state, the
    volume is locked, but that is not indicated by 'vos listvldb'. The
    volume can be unlocked by issuing 'vos unlock'.
    
    Change-Id: Idc4f821a9eb7675edd78a8547fdfe46e838b0c89
    Reviewed-on: https://gerrit.openafs.org/14307
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Andrew Deason <[email protected]>
    Reviewed-by: Cheyenne Wills <[email protected]>
    Reviewed-by: Michael Meffie <[email protected]>
    Reviewed-by: Benjamin Kaduk <[email protected]>

 src/vlserver/vldb_check.c |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to