vmdk: return errno instead of -1