sdcard: re-organize attach/detach sdcard
authorMunkyu Im <munkyu.im@samsung.com>
Mon, 6 Feb 2017 12:12:21 +0000 (21:12 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 16 Feb 2017 06:45:00 +0000 (15:45 +0900)
commit3a1aa409d40fe29b2842d9fe38f800ecda113a6c
tree8de39cf3b69f47a40f20f5a31397f02aa22c66f5
parentda0895caa4caac61959f6b260d3b1d5df9983754
sdcard: re-organize attach/detach sdcard

 - QPI rules are changed.
from commit 9ec8873e684c2dae6fadb3a801057c613ccd2a6b,
"node-name" becomes mandatory and "id" is removed.
"id" is necessary to search attached sdcard.
To do it, should use blk_new_open() which returns BlockBackend pointer.
And this value is set as an argument  of monitor_add_blk().

from commit 0153d2f50bc2ad3f41810d838fcf66acbf10f07a,
"options" is removed.
 - modify method of adding/removing block device.
 - add some error handlings.

Change-Id: I7230c8f6a116eed5dc71e1c85d8ad162c4581d59
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
tizen/src/util/device_hotplug.c