Marking HFS+ partition in APM as automountable for legacy Macs.
This commit is contained in:
parent
7fd36ffade
commit
45bee0a849
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user