-
Notifications
You must be signed in to change notification settings - Fork 245
Closed
Labels
Description
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
osal/src/os/shared/src/osapi-filesys.c
Lines 259 to 267 in fa9671f
| 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