Comment 4 for bug 1368815

Revision history for this message
Pádraig Brady (p-draigbrady) wrote :

I see seek hole is supported in the latest qemu-img so I would reorder so that's tried first like:

    if lseek(SEEK_HOLE) == ENOTSUP
        use_that
        if fiemap(FIEMAP_FLAG_SYNC)
            use_that