• Jan Kara's avatar
    udf: Fix directory corruption after extent merging · 4651c590
    Jan Kara authored
    If udf_bread() called from udf_add_entry() managed to merge created extent to
    an already existing one (or if previous extents could be merged), the code
    truncating the last extent to proper size would just overwrite the freshly
    allocated extent with an extent that used to be in that place.  This obviously
    results in a directory corruption. Fix the problem by properly reloading the
    last extent.
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    4651c590
namei.c 33.8 KB