• 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: What causes Finder 'Volume in use" alert?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What causes Finder 'Volume in use" alert?


  • Subject: Re: What causes Finder 'Volume in use" alert?
  • From: Eric Peyton <email@hidden>
  • Date: Sun, 23 Sep 2001 10:39:36 -0500

I don't know what you are missing, but I can explain the flow of how this determination is made.

When you hit Cmd-E or otherwise attempt to eject a disk

a) The applications stack ends up asking Disk Arbitration (the atuodiskmount daemon) to eject the disk.
b) autodiskmount asks every application that subscribes (all Cocoa and Carbon apps, and a few daemons) if it is okay to eject. This is done under the hood for all Cocoa and Carbon applications. If a daemon subscribes to arbitration notifications, they need to handle it.
c) All applications respond to autodiskmount saying yea or nay, like I said, this is "done for you".
d) If all applications respond "sure - eject it", autodiskmount tries to eject it.
e) The kernel can still say no of course. This is probably what is happening. Any daemon or application that still has files open or mapped will cause the kernel to say no.
f) In the case where the kernel says no, there should be a log in the console log from autodiskmount with an error like this ...

Sep 23 10:38:43 spawn /sbin/autodiskmount[110]: UnmountDisk('disk2s2') unmount('/Volumes/Untitled') failed: 16 (Device busy)

Is this happening for you?
What logs do you see in Console when you attempt to eject the device?
Do you specifically modify the Desktop Database while the files are open? Are you closing the DesktopDB?

Eric

On Sunday, September 23, 2001, at 09:45 AM, Tony wrote:

When my app writes files onto ZIP disc I can not
eject the drive until I quit the app. Finder reports
that volume is in use.

I thought that some file may be left open, but in GDB
I verified that for every fopen my code executes fclose.

In fact, even if I erase all my files on ZIP and
empty Trash, Finder reports the same error. I still
have to quit the app before I can eject ZIP.

What am I missing?

Tony
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: What causes Finder 'Volume in use" alert? (Eric Peyton)
      • From: "Tony" <email@hidden>
References: 
 >What causes Finder 'Volume in use" alert? (From: "Tony" <email@hidden>)

  • Prev by Date: NSThread/NSImage problem
  • Next by Date: Re: Multidimensiaon Arrays in Cocoa
  • Previous by thread: What causes Finder 'Volume in use" alert?
  • Next by thread: Re: What causes Finder 'Volume in use" alert? (Eric Peyton)
  • Index(es):
    • Date
    • Thread