[android-kernel] Re: How do you un-mount a busy partition?

2010-09-26 Thread archieval
Thanks for these information, but are you guys referring to latest Android OS 2.2 source codes? I do not have a copy of that yet, I am working on 2.1 source codes instead. On Sep 25, 9:50 am, Joshua Hruday wrote: > hi, > void Process::killProcessesWithOpenFiles(const char *path, int action) > in

[android-kernel] Re: How do you un-mount a busy partition?

2010-09-24 Thread Joshua Hruday
hi, void Process::killProcessesWithOpenFiles(const char *path, int action) in [platform/system/vold.git] / Process.cpp does the job of killing all the processes using a mounted partition it does the scanning of all the relevant fds using a particular mount point using /proc/pid/ *. Thanks and Rega

Re: [android-kernel] Re: How do you un-mount a busy partition?

2010-09-24 Thread Dianne Hackborn
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 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

[android-kernel] Re: How do you un-mount a busy partition?

2010-09-23 Thread Chris Stratton
/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 co

[android-kernel] Re: How do you un-mount a busy partition?

2010-09-23 Thread archieval
I have got a solution now that so far has no apparent bad effects. I used "umount -l" to unmount a busy usb mass storage device mounted on a certain folder. I unmount it while playing a video directly from the usb device, and no fatal effect has been observed. I hope this can also help anyone. =)