Skip to content
  • Eric Sandeen's avatar
    ext3: retry failed direct IO allocations · ea0174a7
    Eric Sandeen authored
    On a 256M 4k block filesystem, doing this in a loop:
    
        dd if=/dev/zero of=test oflag=direct bs=1M count=64
        rm -f test
    
    eventually leads to spurious ENOSPC:
    
        dd: writing `test': No space left on device
    
    As with other block allocation callers, it looks like we need to
    potentially retry the allocations on the initial ENOSPC.
    
    A similar patch went into ext4 (commit
    fbbf6945
    
    )
    
    Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    ea0174a7