{ "/lib", "./lib" },
{ "/mnt", "./mnt" },
{ "/proc", "./proc" },
+ { "/run", "./run" },
{ "/smack", "./smack" },
{ "/sys", "./sys" },
{ "/sys/kernel/debug", "./sys/kernel/debug" },
for (i = 0; i < sizeof(mount_info)/sizeof(struct _path_info); ++i)
{
+ LOGI("mount src: %s, dest: %s", mount_info[i].src_path, mount_info[i].dest_path);
if (mount(mount_info[i].src_path, mount_info[i].dest_path, NULL, MS_BIND | MS_PRIVATE, NULL) != 0)
{
LOGE("mount() failed, src path: %s, dest path: %s, errno: %d (%s)",
for (i = 0; i < sizeof(mount_info1)/sizeof(struct _path_info); ++i)
{
+ LOGI("mount src: %s, dest: %s", mount_info1[i].src_path, mount_info1[i].dest_path);
if (mount(mount_info1[i].src_path, mount_info1[i].dest_path, NULL, MS_BIND | MS_PRIVATE, NULL) != 0)
{
LOGE("mount() failed, src path: %s, dest path: %s, errno: %d (%s)",
}
for (i = 0; i < sizeof(mount_info2)/sizeof(struct _path_info); ++i)
{
+ LOGI("mount src: %s, dest: %s", mount_info2[i].src_path, mount_info2[i].dest_path);
if (mount(mount_info2[i].src_path, mount_info2[i].dest_path, NULL, MS_BIND | MS_PRIVATE, NULL) != 0)
{
LOGE("mount() failed, src path: %s, dest path: %s, errno: %d (%s)",
return -1;
}
- for (i = 0; i < sizeof(mount_info)/sizeof(struct _path_info); ++i)
+ int count = sizeof(mount_info)/sizeof(struct _path_info);
+ for (i = 0; i < count; ++i)
{
- if (i == 23) // /opt/storage/sdcard
+ if (i == (count - 1)) // /opt/storage/sdcard
{
int mmc_mounted = 0;
int ret = vconf_get_int(VCONFKEY_SYSMAN_MMC_STATUS, &mmc_mounted);
for (i = 0; i < sizeof(mount_info1)/sizeof(struct _path_info); i++)
{
+ LOGI("src path: %s, dest path: %s", mount_info1[i].src_path, mount_info1[i].dest_path);
if (mount(mount_info1[i].src_path, mount_info1[i].dest_path, NULL, MS_BIND | MS_PRIVATE, NULL) != 0)
{
LOGE("mount() failed, src path: %s, dest path: %s, errno: %d (%s)",
}
for (i = 0; i < sizeof(mount_info2)/sizeof(struct _path_info); i++)
{
+ LOGI("src path: %s, dest path: %s", mount_info2[i].src_path, mount_info2[i].dest_path);
if (mount(mount_info2[i].src_path, mount_info2[i].dest_path, NULL, MS_BIND | MS_PRIVATE, NULL) != 0)
{
LOGE("mount() failed, src path: %s, dest path: %s, errno: %d (%s)",
{ "/opt/storage/sdcard" },
{ "/opt/usr" },
{ "/opt/var/run" },
+ { "/run" },
{ "/sys" },
{ "/usr/share/locale" },
{ "/var" }