Re: Notification when network volume disappears
Re: Notification when network volume disappears
- Subject: Re: Notification when network volume disappears
- From: mm w <email@hidden>
- Date: Mon, 14 Jun 2010 09:46:17 -0700
no you are in the weed there
On Mon, Jun 14, 2010 at 9:40 AM, Boris Prohaska <email@hidden> wrote:
> 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
>
_______________________________________________
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