69aa9a8 gfs2-utils: Wrong hash value used to clean journals

1 file Authored by rpeterso 5 years ago, Committed by andyp 5 years ago,
    gfs2-utils: Wrong hash value used to clean journals
    
    When fsck.gfs2 sees a dirty journal, (one that does not have a
    log header with the UNMOUNT flag set at the wrap-point), it replays
    the journal and writes a log header out to "clean" the journal.
    Unfortunately, before this patch, it was using the wrong hash value.
    So every time fsck.gfs2 was run, it would not recognize its own
    log header because of the wrong hash, and therefore it would always
    see the journal as dirty with every run (until the file system is
    mounted and unmounted, which would write a new correct log header).
    Therefore, multiple runs of fsck.gfs2 would always result in a
    replay of the journal, which remains "dirty."
    
    This patch changes function clean_journal so that it uses the
    correct hash function. Therefore, the journal will be truly clean
    and consecutive runs (or mounts) will find the journal clean.
    
    Signed-off-by: Bob Peterson <rpeterso@redhat.com>
    Signed-off-by: Andrew Price <anprice@redhat.com>
    
        
file modified
+1 -1