I need to avoid remappings because I wish the shadow directory to contain only the customised files the user wishes to use at any given time, every path not found in shadow dir would get processed in /dev_flash by default.I uploaded the commit with the changes for the PoC (and other improvements to Mamba)
https://github.com/aldostools/Mamba/commit/79e0bdedacf902bec839edf155267c3192107e41
The way I implemented the partial redirection in map_path() it is possible to remap the entire /dev_flash or any other folder / subfolder.
Example: /remap.ps3/dev_flash/vsh&to=//dev_hdd0/shadow_vsh
or /remap.ps3/dev_flash/vsh/resource &to=//dev_hdd0/shadow_resources
If the file doesn't exist in hdd0, then the original file in /dev_flash is used.
If the redirection doesn't cause issues, something like this could be added in main.c:
map_path("/dev_flash", "//dev_hdd0/flash", 0);
I am not sure yet but I think I can only do that by stat-ing the path at runtime whenever a path gets opened.