mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Commit NAND image changes on "commit all" or "commit mtd".
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2858 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
aa941b9445
commit
2dc7b602df
2 changed files with 6 additions and 1 deletions
|
@ -202,7 +202,7 @@ static void do_help(const char *name)
|
||||||
static void do_commit(const char *device)
|
static void do_commit(const char *device)
|
||||||
{
|
{
|
||||||
int i, all_devices;
|
int i, all_devices;
|
||||||
|
|
||||||
all_devices = !strcmp(device, "all");
|
all_devices = !strcmp(device, "all");
|
||||||
for (i = 0; i < MAX_DISKS; i++) {
|
for (i = 0; i < MAX_DISKS; i++) {
|
||||||
if (bs_table[i]) {
|
if (bs_table[i]) {
|
||||||
|
@ -211,6 +211,9 @@ static void do_commit(const char *device)
|
||||||
bdrv_commit(bs_table[i]);
|
bdrv_commit(bs_table[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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)
|
static void do_info(const char *item)
|
||||||
|
|
2
vl.c
2
vl.c
|
@ -1362,6 +1362,8 @@ static int mux_proc_byte(CharDriverState *chr, MuxDriver *d, int ch)
|
||||||
if (bs_table[i])
|
if (bs_table[i])
|
||||||
bdrv_commit(bs_table[i]);
|
bdrv_commit(bs_table[i]);
|
||||||
}
|
}
|
||||||
|
if (mtd_bdrv)
|
||||||
|
bdrv_commit(mtd_bdrv);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue