Copy valid codes from dmg2img, hfsplus, hfsprogs, hfsutils,
     linux-kernel.