Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Path Mapping not always working #1315

Open
superolmo opened this issue Oct 20, 2022 · 0 comments
Open

Fixed Path Mapping not always working #1315

superolmo opened this issue Oct 20, 2022 · 0 comments
Labels

Comments

@superolmo
Copy link

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

@chillfig chillfig added the bug label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants