[Title]modified for changing sdcard storage
authorsungmin ha <sungmin82.ha@samsung.com>
Tue, 29 May 2012 12:14:09 +0000 (21:14 +0900)
committersungmin ha <sungmin82.ha@samsung.com>
Tue, 29 May 2012 12:14:09 +0000 (21:14 +0900)
[Type]Enhancement
[Module]qemu
[Priority]Major
[Jira#] // Jira Issue Number
[Redmine#]  // Redmine Isuue Number
[Problem]  // Problem Description
[Cause]  // Cause Description
[Solution] // Solution Description
[TestCase]  // Executed the test-target (How to)

tizen/src/guest_server.c

index aa6415b..b4743a7 100644 (file)
@@ -74,10 +74,10 @@ pthread_t start_guest_server( int server_port ) {
 
 }
 
-/* get_tizen_vms_path = "/home/{USER}/.tizen_vms/" */
-char* get_tizen_vms_path(void)
+/* get_tizen_vms_sdcard_path = "/home/{USER}/tizen_vms/sdcard" */
+char* get_tizen_vms_sdcard_path(void)
 {
-       char tizen_vms[] = "/tizen_vms/";
+       char tizen_vms[] = "/tizen_vms/sdcard/";
 #ifndef _WIN32
        char *homedir = (char*)g_getenv("HOME");
 #else
@@ -182,12 +182,12 @@ static void* run_guest_server( void* args ) {
                } else if( atoi(ret) == 1 ) {
                        /* mount sdcard */
                        char sdcard_path[256];
-                       char* vms_path = get_tizen_vms_path(); 
+                       char* vms_path = get_tizen_vms_sdcard_path(); 
                        memset(sdcard_path, '\0', sizeof(sdcard_path));
                        
                        strcpy(sdcard_path, vms_path);
                        
-                       /* tizen_vms_path + sdcard img name */
+                       /* tizen_vms_sdcard_path + sdcard img name */
                        ret = strtok(NULL, token);
                        strcat(sdcard_path, ret);
                        INFO( "%s\n", sdcard_path);