Page 1 of 1

mounting a partition / image

Posted: 07 Sep 2013 18:57
by g2ek
hi,

after an upgrade of the Android system from v4.0 to v4.2.2 on my phone one of my flows stopped working. the flow is triggered when the external SD card is mounted and mounts a filesystem image, another flow unmounts the image before the SD card is unmounted. from logcat it seems that the script is executed successfully, but from an adb shell the image isn't seen as mounted. the loop device is definitely set up, as /sys/block/loopX/loop/backing_file shows. when trying to detach the loop manually with "losetup -d" the kernel complains about "Device or resource busy". looks a bit as if the mount is setup inside a container, only visible to Automagic. on the other hand also Automagic fails to detach the loop device (using umount -d)

when the mount and unmount scripts are executed manually from an adb shell everything works as expected

any ideas?

g2ek

Re: mounting a partition / image

Posted: 07 Sep 2013 20:11
by g2ek
multi-user support seems to be the problem:

"The default platform implementation of this feature leverages Linux kernel namespaces to create isolated mount tables for each Zygote-forked process, and then uses bind mounts to offer the correct user-specific primary external storage into that private namespace."

http://source.android.com/devices/tech/storage/

If anybody has ideas how to circumvent this please let me know

thanks

g2ek