Un-mounting of first DMG is taking 15secs
Un-mounting of first DMG is taking 15secs
- Subject: Un-mounting of first DMG is taking 15secs
- From: Sravana Kumar <email@hidden>
- Date: Tue, 1 Dec 2009 16:11:44 +0530
Hi all,
In my application I need to mount and un-mount DMGs, but in one specific
workflow un-mounting of first DMG is taking 15secs of time.
I am using ‘hdiutil’ command and NSTask with the following options ...
Mounting:
hdiutil attach <dmgPath> -noverify –noautoopen –nobrowse –noautofsck
–readonly –quiet -mountpoint <tryMoutPath>
Unmounting:
hdiutil detach <dmgPath> -quiet
I am using NSTask, waitUntilExit method for every mount and un-mount. As I
want mounting, un-mounting to be sync operations.
Only first un-mounting is taking 15secs time, if I won’t wait for
un-mounting and and try mounting the second DMG then the second DMG mount is
also taking 15secs time. It means either unmounting of first dmg or mounting
of second dmg is taking time. The same code is not taking time in many other
workflows.
In the specific workflow which is taking time, my application is being
launched by another root privileged process.
Do any one faced this type of issue ? Or any suggestions ?
Thanks and Regards,
-Sra1
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden