• S
    [GFS2] Make sentinel dirents compatible with gfs1 · 5e7d65cd
    Steven Whitehouse 提交于
    When deleting directory entries, we set the inum.no_addr to zero
    in a dirent when its the first dirent in a block and thus cannot
    be merged into the previous dirent as is the usual case. In gfs1,
    inum.no_formal_ino was used instead.
    
    This patch changes gfs2 to set both inum.no_addr and inum.no_formal_ino
    to zero. It also changes the test from just looking at inum.no_addr to
    look at both inum.no_addr and inum.no_formal_ino and a sentinel is
    now considered to be a dirent in which _either_ (or both) of them
    is set to zero.
    
    This resolves Red Hat bugzillas: #215809, #211465
    Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
    5e7d65cd
dir.c 46.1 KB