hadris-cd
A Rust library for creating hybrid ISO+UDF optical disc images (UDF Bridge format).
Overview
This crate creates images that contain both ISO 9660 and UDF filesystems sharing the same underlying file data. This provides maximum compatibility:
- Legacy systems read ISO 9660
- Modern systems read UDF
- Both filesystems point to the same file data on disk
Quick Start
use ;
let mut tree = new;
tree.add_file;
let options = with_volume_id
.with_joliet;
let file = create.unwrap;
new
.write
.unwrap;
Disk Layout
The UDF Bridge format interleaves ISO 9660 and UDF structures:
Sector 0-15: System area (boot code, partition tables)
Sector 16-...: ISO 9660 Volume Descriptors
Sector 17-19: UDF Volume Recognition Sequence (BEA01, NSR02, TEA01)
Sector 256: UDF Anchor Volume Descriptor Pointer
Sector 257+: UDF Volume Descriptor Sequence
File data: Shared between ISO and UDF (both point to same sectors)
Features
- ISO 9660 with Joliet (Windows long filenames) and Rock Ridge (POSIX)
- UDF 1.02/1.50/2.00+ support
- El-Torito bootable images (BIOS and UEFI)
- Hybrid MBR+GPT for USB booting
License
MIT