From 45bee0a849b04168c169132d4085ef839c8e8dac Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 10 Jun 2012 10:42:39 +0200 Subject: [PATCH] Marking HFS+ partition in APM as automountable for legacy Macs. --- doc/iso_hybrid_fs.txt | 2 +- libisofs/system_area.c | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/iso_hybrid_fs.txt b/doc/iso_hybrid_fs.txt index 607fea2..7b57b33 100644 --- a/doc/iso_hybrid_fs.txt +++ b/doc/iso_hybrid_fs.txt @@ -3,7 +3,7 @@ by Thomas Schmitt - mailto:scdbackup@gmx.net Libburnia project - mailto:libburn-hackers@pykix.org - 21 Feb 2012 + 07 Jun 2012 The overall framework for the filesystem images produced by libisofs is given diff --git a/libisofs/system_area.c b/libisofs/system_area.c index 03e9fe6..29e0a94 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -820,11 +820,16 @@ static int iso_write_apm_entry(Ecma119Image *t, int apm_block_size, wpt += 4; /* Status flags : bit0= entry is valid , bit1= entry is allocated bit4= partition is readable , bit5= partition is writable + bit30= automatic mount (legacy Mac) */ - if (flag & 1) + if (flag & 1) { flags = 3; - else + } else { flags = 0x13; + if (strncmp((char *) req->type, "Apple_HFS", 9) == 0 && + req->type[9] == 0) + flags |= 0x40000000; + } iso_msb(wpt, flags, 4); wpt += 4;