This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
inconsistency after aborting fconfig
- From: Christoph Csebits <christoph dot csebits at frequentis dot com>
- To: ecos discuss list <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 19 Nov 2002 15:43:14 +0100
- Subject: [ECOS] inconsistency after aborting fconfig
hi,
after answering the question
"Update RedBoot non-volatile configuration - continue (y/n)?"
with "n" the content of the fconfig workspace (in RAM)
is not restored.
Giving flash_write_config() a return value (returning false if
updating is aborted) and handle it might be a solution:
do_flash_config() in redboot/current/src/flash.c:
if (!flash_write_config()) {
// aborted, restore contents
memcpy(config, backup_config, sizeof(struct _config));
}
what do you think about it?
christoph
--
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss