This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]