site_archiver@lists.apple.com Delivered-To: Darwin-dev@lists.apple.com User-agent: Thunderbird 2.0.0.14 (X11/20080505) Good day! So here's the setup: 1) I have a kext that creates an IOBlockStorageDriver. I setup and tear down block devices from userspace with an application. 2) I format these devices by calling standard format commands, such as newfs_{hfs,msdos,...}. 3) Using an application, and the DiskArbitration calls (namely DADiskMountWithArguments and DADiskUnmount), I mount these devices to a directory on the filesystem. The problem I have is this: 2.1) I try to unmount a mounted device using DADiskUnmount. 2.2) This fails because the device is "busy". - There are no IO operations happening. - There are no files open by users. - The only file open on the mount point is (output from lsof): fseventsd 34 root 12u REG 14,4 0 999999999 <mountpoint>/.fseventsd/0000000000006478 2.3) If I use the kDADiskUnmountOptionForce option in the call to DADiskUnmount, it corrupts the filesystem. So my questions are: 3.0) Is the fseventsd causing this busy mount point issue? 3.1) What is this fseventsd doing sticking its nose into my mountpoint? 3.2) Can I stop the fseventsd from doing this? 3.3) Am I missing some sort of call to the fseventsd? My apologies if I missed some documentation on this, but I honestly did try looking :( Many thanks for any help/advice/comments. Kind regards, Tim _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com signature.asc