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
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
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
/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
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. =)