OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_0pre1-154-gefd3fa3

Gerrit Code Review gerrit@openafs.org
Tue, 8 Feb 2011 13:55:30 -0800 (PST)


The following commit has been merged in the openafs-stable-1_6_x branch:
commit efd3fa3808499ede8c19ba3ede7bd67524538da1
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Thu Sep 9 14:10:01 2010 -0500

    namei: Do not remove n_voldir1
    
    When removing data directories in namei_RemoveDataDirectories, do not
    remove the n_voldir1 directory (directory X in /vicepa/AFSIDat/X).
    Removing this directory can race against the creation of an entirely
    unrelated volume, causing the create op to fail (since it tries to
    create a directory in a directory that no longer exists).
    
    We don't currently have the necessary locking to make this safe, and
    since the overhead of n_voldir1 existing is pretty negligible, just
    leave it there. Also add some comments briefly justifying this.
    
    Note that other similar races probably exist for directories under
    n_voldir1, but they would only be between volumes in the same VG, and
    so are much less likely to occur.
    
    (cherry picked from commit f2df207274c65b4fa8c24419150e9084a4d17fca)
    Reviewed-on: http://gerrit.openafs.org/2727
    Tested-by: Andrew Deason <adeason@sinenomine.net>
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: Derrick Brashear <shadow@dementia.org>
    
    Change-Id: I2df4b73dd5125da0a2de52c3011ba167dc036a8b
    Reviewed-on: http://gerrit.openafs.org/3907
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: Derrick Brashear <shadow@dementia.org>

 src/vol/namei_ops.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

-- 
OpenAFS Master Repository