mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
Add -drive parameter, by Laurent Vivier.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3759 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7233b35557
commit
e4bcb14c79
27 changed files with 875 additions and 317 deletions
11
monitor.c
11
monitor.c
|
@ -215,16 +215,11 @@ static void do_commit(const char *device)
|
|||
int i, all_devices;
|
||||
|
||||
all_devices = !strcmp(device, "all");
|
||||
for (i = 0; i < MAX_DISKS; i++) {
|
||||
if (bs_table[i]) {
|
||||
for (i = 0; i < nb_drives; i++) {
|
||||
if (all_devices ||
|
||||
!strcmp(bdrv_get_device_name(bs_table[i]), device))
|
||||
bdrv_commit(bs_table[i]);
|
||||
}
|
||||
!strcmp(bdrv_get_device_name(drives_table[i].bdrv), device))
|
||||
bdrv_commit(drives_table[i].bdrv);
|
||||
}
|
||||
if (mtd_bdrv)
|
||||
if (all_devices || !strcmp(bdrv_get_device_name(mtd_bdrv), device))
|
||||
bdrv_commit(mtd_bdrv);
|
||||
}
|
||||
|
||||
static void do_info(const char *item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue