Do not use translateFile, because it pulls in parts of the pch.
If the file is marked for rereading and deleted in the meanwhile it will get different file stat and inode number.
Teach the file manager to handle these situations.
Use normalized filenames.
No need of flagging which is library and which not. The lib manager knows.
Implement callbacks for the DynamicLibraryManager.
Handle the DynamicLibraryManager callbacks and implement no-rtti - rtti bridge forwarding to TCling.
Load the library only if it is not loaded.
Use the metaprocessor, because the file must be reloadable.
Use the canonical filename when unloading.
No need of updating anything. It happens through the callbacks.