Skip to content

Fixed Path Mapping not always working #1315

@superolmo

Description

@superolmo

Describe the bug
Using the fixed path mapping function OS_FileSysAddFixedMap() with paths like /ram0/cf and /ffx0/cf will only work once.

To Reproduce

OS_FileSysAddFixedMap( , "/ram0/cf", "/cf1");
OS_FileSysAddFixedMap( , "/ffx0/cf", "/cf2");

Expected behavior
Both paths should be included in the object table

Code snips
This is the part of code that generates a unique dev_name, but

dev_name = strrchr(phys_path, '/');
if (dev_name == NULL)
{
dev_name = phys_path;
}
else
{
++dev_name;
}

System observed on:

  • Hardware: Aitech SP0
  • OS: VxWorks 6.9
  • Versions: Latest

Additional context

Reporter Info
Claudio Olmi, NASA JSC

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions