• 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: Notification when network volume disappears
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notification when network volume disappears


  • Subject: Re: Notification when network volume disappears
  • From: Boris Prohaska <email@hidden>
  • Date: Mon, 14 Jun 2010 18:40:30 +0200

Thats exactly the problem. IF the OS was aware of it, then there would be no problem. There is also no setting for timeouts etc when performing blocking operations onto the filesystem.
Maybe that is a OS X limitation??

Boris

On 14.06.2010, at 17:04, Ken Thomases wrote:

> On Jun 14, 2010, at 4:52 AM, Boris Prohaska wrote:
>
>> i was just wondering, is there any way to determine when for example a network cable is plugged off while copying data to a network share? The Finder has a pretty long timeout...
>>
>> Is there a way in the FS API or ANY other way to get notified, when a volume isn't available for writing anymore?
>
> If you just want to know when a volume disappears (is unmounted), NSWorkspace provides notifications for that.  But I don't think that will address the issue you describe.
>
> The problem is that the volume hasn't disappeared, it's just incommunicado as far as the OS is concerned.  If it had disappeared in a way that the OS was aware of, then there would be no way for something to be stuck writing to it (or to begin writing to it, etc.).  That is, there would be no paths to it for opening new file descriptors and all existing file descriptors would return errors on access.
>
> -Ken

_______________________________________________

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

  • Follow-Ups:
    • Re: Notification when network volume disappears
      • From: mm w <email@hidden>
    • Re: Notification when network volume disappears
      • From: Ken Thomases <email@hidden>
References: 
 >Notification when network volume disappears (From: "Boris Prohaska" <email@hidden>)
 >Re: Notification when network volume disappears (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Custom NSCell mouse events
  • Next by Date: Re: Notification when network volume disappears
  • Previous by thread: Re: Notification when network volume disappears
  • Next by thread: Re: Notification when network volume disappears
  • Index(es):
    • Date
    • Thread