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>