• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Un-mounting of first DMG is taking 15secs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Un-mounting of first DMG is taking 15secs


  • Subject: Re: Un-mounting of first DMG is taking 15secs
  • From: John Joyce <email@hidden>
  • Date: Wed, 2 Dec 2009 00:13:42 -0600

On Dec 1, 2009, at 11:03 PM, email@hidden wrote:

> 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
Without posting code or more detail on these "workflows" as well as what you have tried, it is unlikely you will get much of a response.
Based on "sometimes it takes a long time" then that would indicate something is still happening.
If a process is running from the dmg, then it cannot unmount until that process ends.
Example: if you launch an app that is inside of a dmg, or on another volume external to the boot volume, you cannot unmount that volume until that app is terminated in some fashion.
You may want to try monitoring the processes running (top is a good unix tool for this)
or fseventer ...

_______________________________________________

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

  • Prev by Date: Migrating changed objects between contexts
  • Next by Date: Re: Download Alert -- Quarantine information removal
  • Previous by thread: Un-mounting of first DMG is taking 15secs
  • Next by thread: Download Alert -- Quarantine information removal
  • Index(es):
    • Date
    • Thread