• B
    GFS2 fatal: filesystem consistency error on rename · 46290341
    Bob Peterson 提交于
    This patch fixes a GFS2 problem whereby the first rename after a
    mount can result in a file system consistency error being flagged
    improperly and cause the file system to withdraw.  The problem is
    that the rename code tries to run the rgrp list with function
    gfs2_blk2rgrpd before the rgrp list is guaranteed to be read in
    from disk.  The patch makes the rename function hold the rindex
    glock (as the gfs2_unlink code does today) which reads in the rgrp
    list if need be.  There were a total of three places in the rename
    code that improperly referenced the rgrp list without the rindex
    glock and this patch fixes all three.
    Signed-off-by: NBob Peterson <rpeterso@redhat.com>
    Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
    46290341
rgrp.h 2.6 KB