if (!r)
return r;
if (option == UNMOUNT_NORMAL) {
- PRT_INFO("Failed to unmount with normal option : %s", strerror(-r));
+ PRT_TRACE_EM("Failed to unmount with normal option : %s", strerror(-r));
return r;
}
- PRT_INFO("Execute force unmount!");
+ PRT_TRACE_EM("Execute force unmount!");
/* at first, it will be send SIGTERM
if app still access the SD-card, it will kill with SIGKILL */
for (retry = UNMOUNT_RETRY; retry > 0; --retry) {
switch (retry) {
case UNMOUNT_RETRY:
/* At first, notify to other app who already access sdcard */
- PRT_INFO("Notify to other app who already access sdcard");
+ PRT_TRACE_EM("Notify to other app who already access sdcard");
vconf_set_int(VCONFKEY_SYSMAN_MMC_STATUS, VCONFKEY_SYSMAN_MMC_INSERTED_NOT_MOUNTED);
break;
case UNMOUNT_RETRY-1:
/* Second, kill app with SIGTERM */
- PRT_INFO("Kill app with SIGTERM");
+ PRT_TRACE_EM("Kill app with SIGTERM");
kill_app_accessing_mmc(false);
break;
case UNMOUNT_RETRY-2:
/* Last time, kill app with SIGKILL */
- PRT_INFO("Kill app with SIGKILL");
+ PRT_TRACE_EM("Kill app with SIGKILL");
kill_app_accessing_mmc(true);
break;
default:
/* try to unmount app2ext */
r = app2ext_unmount();
if (r < 0)
- PRT_INFO("Faild to unmount app2ext : %s", strerror(-r));
+ PRT_TRACE_ERR("Faild to unmount app2ext : %s", strerror(-r));
r = mmc_check_and_unmount(mount_point);
if (!r)
error:
PRT_TRACE_ERR("Failed to unmount mmc card : %s\n", strerror(-r));
+ vconf_set_int(VCONFKEY_SYSMAN_MMC_STATUS, VCONFKEY_SYSMAN_MMC_MOUNTED);
vconf_set_int(VCONFKEY_SYSMAN_MMC_UNMOUNT, VCONFKEY_SYSMAN_MMC_UNMOUNT_FAILED);
vconf_set_int(VCONFKEY_SYSMAN_MMC_ERR_STATUS, -r);
return r;