I believe vold does it: http://android.git.kernel.org/?p=platform/system/vold.git;a=tree
On Thu, Sep 23, 2010 at 10:00 PM, Chris Stratton <cs07...@gmail.com> wrote: > /proc/[procid]/fd/ will be full of symlinks to the target files or > devices, you could search that > > Or you could try to figure out where android implements the "kill > anything with an open handle on the sdcard when it gets unmounted" for > an example, though it may be done in kernel rather than user code. > > On Sep 22, 10:06 pm, archieval <archie.brio...@gmail.com> wrote: > > Hello everyone, > > > > Unmounting a busy partition has been quite a problem for me, my > > busybox package v1.16.0 have no lsof, and fuser does not really help > > in determining if a file in the mount point is being used, or opened. > > Does anyone have a workaround for this? I tried to insert an lsof > > binary to the system but everytime I execute it, it returns error that > > it is not found. Is there a proc file or something like that wherein I > > can find whether the mount point is opened and what process is using > > it? > > > > Regards, > > archieval > > -- > unsubscribe: > android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com> > website: http://groups.google.com/group/android-kernel > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel