DiskArbitration, unmounting busy due to fseventsd?
DiskArbitration, unmounting busy due to fseventsd?
- Subject: DiskArbitration, unmounting busy due to fseventsd?
- From: Tim Schooley <email@hidden>
- Date: Fri, 06 Jun 2008 09:44:29 +0100
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
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden