[ECOS] inconsistency after aborting fconfig

Christoph Csebits christoph.csebits@frequentis.com
Tue Nov 19 06:43:00 GMT 2002


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



More information about the Ecos-discuss mailing list