• 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: Ejecting removable disks and icons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ejecting removable disks and icons


  • Subject: Re: Ejecting removable disks and icons
  • From: Jeremy Pereira <email@hidden>
  • Date: Tue, 20 Dec 2005 09:59:39 +0900

Ah, that makes sense.

I'd like to emphasize at this point that I am only porting this software, the design is not my fault!

The software was originally written to talk to SCSI disks via a traditional SCSI pass through device. There is a user mode service which does all of the reads and writes and there is a kernel mode VFS driver. The two components talk to each other through a device file created for the purpose (call it the coms device), the driver by making function calls direct and the user mode service through the ioctl interface.

The existing software passes the path to the coms device to the mount system call, *not* the IOMedia's BSD device. Would I be correct in guessing that the system uses the mount point's device file to locate the IOMedia object?

On Dec 20, 2005, at 00:59, Dan Markarian wrote:

Hi Jeremy,

It sounds as though the file system does not match against a media object in I/O Kit. We require the media object in order to request an ejection and also locate its icon. Does the disk in question not have a media object created for it? Does the file system talk directly to USB?

Dan

On 18 Dec 2005, at 5:59 AM, Jeremy Pereira wrote:

I am porting a file system driver for magneto-optical disk drives from BSD to Mac OS X. Everything works fine at the BSD level. Disks will mount and you can read and write files to them and everything else you would normally expect to do.

By creating an appropriate bundle in /System/Library/FileSystems I have got disks to automatically mount and appear as drives in the Finder. However, I have two issues:

1. The Finder will not eject disks when you ask it to. When you press the eject button next to the drive icon, nothing happens except any open windows displaying the content of the drive revert back up to the "computer" view.

2. The icon I am getting is the network drive icon. A USB drive icon would be more appropriate.

The more pressing problem is the eject issue. How does the Finder notify the OS that a volume should be unmounted and ejected?




_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Ejecting removable disks and icons
      • From: Dan Markarian <email@hidden>
References: 
 >Ejecting removable disks and icons (From: Jeremy Pereira <email@hidden>)
 >Re: Ejecting removable disks and icons (From: Dan Markarian <email@hidden>)

  • Prev by Date: select on pipe blocked
  • Next by Date: Re: select on pipe blocked
  • Previous by thread: Re: Ejecting removable disks and icons
  • Next by thread: Re: Ejecting removable disks and icons
  • Index(es):
    • Date
    • Thread