Fixed SDCard locking issue in windows 96/280996/1
authorVarinder Pratap <varinder.p@samsung.com>
Wed, 7 Sep 2022 11:05:46 +0000 (16:35 +0530)
committerVarinder Pratap <varinder.p@samsung.com>
Wed, 7 Sep 2022 11:05:55 +0000 (16:35 +0530)
Change-Id: I458e512919a50624d0dc719400267b34364c7e6b
Signed-off-by: Varinder Pratap <varinder.p@samsung.com>
tizen/src/util/device_hotplug.c

index 2f8a9af3d83b58a7f64d5f3cfa4284eda9733c56..95fa101656c05f673fa0b824b9b97e6e5610aca5 100644 (file)
@@ -117,7 +117,11 @@ static bool do_sdcard_attach(const char * const file)
     gchar *sdcard_drive_id = g_strdup_printf("drive_id_%s", sdcard_img);
 
     /* refer from test-replication.c */
-    cmdline = g_strdup_printf("driver=qcow2,node-name=sdcard,file.locking=off,"
+    cmdline = g_strdup_printf("driver=qcow2,node-name=sdcard,"
+#ifdef CONFIG_WIN32
+    //option available for posix or linux systems
+    file.locking=off,"
+#endif //CONFIG_WIN32
             "file.driver=file,file.filename=%s"
             , file);
     opts = qemu_opts_parse_noisily(&qemu_drive_opts, cmdline, false);