hds: resolved timing issue between attach and mount
authorJinhyung Choi <jinhyung2.choi@samsung.com>
Fri, 31 Oct 2014 01:16:14 +0000 (10:16 +0900)
committerJinhyung Choi <jinhyung2.choi@samsung.com>
Fri, 31 Oct 2014 01:16:14 +0000 (10:16 +0900)
Change-Id: I799512fcb2a70fc8fb82375d297360b9f89ff40d
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
packaging/emuld.spec
src/common_dev.cpp

index 1dd9c9abb6d0956f821529ff3d67540fbd4f8db1..ced975321384d2ccab5e27e2a3e5c3cae7cff91a 100644 (file)
@@ -1,5 +1,5 @@
 Name: emuld
-Version: 0.7.3
+Version: 0.7.4
 Release: 0
 Summary: Emulator daemon
 License: Apache-2.0
index a85eabb5189accfc30cf5ece4ee9c5f04f11c7e3..b80710f1df18b6708b21cba2d27126741213818a 100644 (file)
@@ -648,9 +648,9 @@ void* mount_hds(void* data)
 
     pthread_detach(pthread_self());
 
-    usleep(1000);
+    usleep(500000);
 
-    for (i = 0; i < 10; i++)
+    for (i = 0; i < 20; i++)
     {
         ret = mount("fileshare", "/mnt/host", "9p", 0,
                     "trans=virtio,version=9p2000.L,msize=65536");
@@ -660,12 +660,12 @@ void* mount_hds(void* data)
         } else {
             LOGERR("%d trial: mount is failed with errno: %d", i, errno);
         }
-        usleep(100);
+        usleep(500000);
     }
 
     group = MSG_GROUP_HDS;
 
-    if (i == 10 || ret != 0)
+    if (i == 20 || ret != 0)
         action = 2;
 
     tmp = make_header_msg(group, action);