diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-24 18:53:22 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-05-24 18:53:22 +0000 |
commit | 2dc7b602df142a470cbf82b5d7ef1ea99f761785 (patch) | |
tree | 52abd4a5de6270a7a416b335fdf21ec0f9fc8497 /monitor.c | |
parent | aa941b944500bf77f0bdbfa0a7112b4e89670ff1 (diff) |
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
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -202,7 +202,7 @@ static void do_help(const char *name) 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]) { @@ -211,6 +211,9 @@ static void do_commit(const char *device) 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) |