site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=gcLPgo322rmNSOxhq2pcY3wUaZ0Ql7dtIOQ7LNNk45I=; b=o9oUJN0jRP4S3Ag5LRFFODjA1SSGBY7SFCQPfXWgrRy66+OolTYylbjK7oy/0rDB2E dJr1V+tYxCulZk3otZWBe8s6wtbBbOwq99VH3wRub0bUHdiEmRRZVgsII1qV0W7+mG/z p3lXVvR0ddL5tY6qaYpoRM8eEkRFXmr2CewNQ= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=kOS+wY6yG/QuXWdpI2i9T8+fHzElAR8M2qpykB9ETWy1fj6oDKvBoTYPYiqDVE8dOh Gw9ceiZO7wfyArJXNcwETS5xgtfhFEmzJZawUEf6Sx438uytcc2jZczZromiXob36UiN ZNQ60KrhYUUANWegZpuR//yxzi2IjzQJw5V40=
You can get notification through disk arbitration in user space, and then call down into your KEXT to tell it about the events. This is typically done with DARegisterDiskMountApprovalCallback and DARegisterDiskUnmountApprovalCallback, which would allow you to ensure mostly synchronous operation.
Ok, having played with disk arbitration, it turned out that disk arbitration does't callback on network disk mount, just on umount. It works fine for removable disks, disk images, etc. If this is by design, how do I catch network disk mount reliably? Thanks in advance, - Maxim. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com