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
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 FIEMAP_ FLAG_SYNC)
use_ that
use_that
if fiemap(