Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 56304 - HFS volumes are sometimes unshareable on MacIntosh
HFS volumes are sometimes unshareable on MacIntosh
Product: Red Hat Linux
Classification: Retired
Component: cdrecord (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Mike A. Harris
Depends On:
  Show dependency treegraph
Reported: 2001-11-15 06:21 EST by jwitford
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-12-06 16:41:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to cufre the problem (412 bytes, patch)
2001-11-15 06:23 EST, jwitford
no flags Details | Diff

  None (edit)
Description jwitford 2001-11-15 06:21:43 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (Win98; U)

Description of problem:
When using mkisofs to create HFS CDROMs the resulting CDROM might not
be shareable when mounted on a MacIntosh.  But sometimes it will be.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. mkisofs -hfs --netatalk -o image .

Actual Results:  Appears to work properly.
Volume not visible until CDROM mounted on a MacIntosh.
Often will be unshareable on Mac.

Expected Results:  The CDROM should always be shareable.

Additional info:

I have found the reason and created a patch which cures the problem.
The hfsdirent structure that is used to create the Desktop DB/DF files is not initialized properly.
Depending on what is on the stack the "flags" element will be initialized incorrectly resulting
in locked Desktop DB/DF files which causes the CDROM to be unshareable.

--- mkisofs/desktop.c.sharing	Tue Dec  5 14:25:05 2000
+++ mkisofs/desktop.c	Thu Nov 15 10:48:30 2001
@@ -72,7 +72,7 @@
 	int	end;
 	hfsfile		*hfp;			/* Mac file */
-	hfsdirent	ent;			/* Mac finderinfo */
+	hfsdirent	ent = {0};		/* Mac finderinfo */
 	unsigned short	clps;			/* clump size */
 	unsigned short	blks;			/* blocks in a clump */
 	unsigned char	*blk;			/* user data */
Comment 1 jwitford 2001-11-15 06:23:05 EST
Created attachment 37583 [details]
Patch to cufre the problem
Comment 2 Mike A. Harris 2002-02-05 02:04:42 EST
Patch added to rawhide build 1.10-8 of cdrtools.

Thanks for the patch.

Note You need to log in before you can comment on or make changes to this bug.