Skip to content
  • mckusick's avatar
    Reorder ffs_verify_dinode_ckhash() so that it checks the inode check-hash · b27d4425
    mckusick authored
    before copying in the inode so that the mode and link-count are not set
    if the check-hash fails. This change ensures that the vnode will be properly
    unwound and recycled rather than being held in the cache.
    
    Initialize the file mode is zero so that if the loading of the inode
    fails (for example because of a check-hash failure), the vnode will be
    properly unwound and recycled.
    
    Reported by:  Gary Jennejohn (gj)
    Sponsored by: Netflix
    b27d4425