This is the mail archive of the ecos-patches@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] | |
If a mount fails, mounting a romfs still
modify cyg_mtab_entry->data. With the patch included,
cyg_mtab_entry->data is only modified after a succesful
mount.
This makes the following codepath impossible:
char address[16];
sprintf( address, "%p", ROMDIR_ADDR);
err = mount( address, "rom", "romfs" );
if( err < 0 )
{
// if no ROM fs has been written, we use a default one.
sprintf( address, "%p", _binary___mkromfs_rom_rawdata_start);
err = mount( address, "rom", "romfs" );
if (err<0)
{
// unrecoverable failure
Attachment:
rom.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |