Marking HFS+ partition in APM as automountable for legacy Macs.

This commit is contained in:
Thomas Schmitt 2012-06-10 10:42:39 +02:00
parent 7fd36ffade
commit 45bee0a849
2 changed files with 8 additions and 3 deletions

View File

@ -3,7 +3,7 @@
by Thomas Schmitt - mailto:scdbackup@gmx.net by Thomas Schmitt - mailto:scdbackup@gmx.net
Libburnia project - mailto:libburn-hackers@pykix.org 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 The overall framework for the filesystem images produced by libisofs is given

View File

@ -820,11 +820,16 @@ static int iso_write_apm_entry(Ecma119Image *t, int apm_block_size,
wpt += 4; wpt += 4;
/* Status flags : bit0= entry is valid , bit1= entry is allocated /* Status flags : bit0= entry is valid , bit1= entry is allocated
bit4= partition is readable , bit5= partition is writable bit4= partition is readable , bit5= partition is writable
bit30= automatic mount (legacy Mac)
*/ */
if (flag & 1) if (flag & 1) {
flags = 3; flags = 3;
else } else {
flags = 0x13; flags = 0x13;
if (strncmp((char *) req->type, "Apple_HFS", 9) == 0 &&
req->type[9] == 0)
flags |= 0x40000000;
}
iso_msb(wpt, flags, 4); iso_msb(wpt, flags, 4);
wpt += 4; wpt += 4;