qcow2: return errno instead of -1