[RFE] Expand search_ppc_bootinfo_async() to search for any file
While there's no currently need for this, I've decided to open this ticket in order to keep track of what's been already done and what should be done in case we decide to expand search_ppc_bootinfo_async() to search for any file.
The current behavior is (hopefully) well described as part of the commit message of 29f97cb7.
What's still to be done then?
Whenever doing the search in the root directory record extent we'd have to:
- For each directory, search for the TRANS.TBL
- If existent:
- Load the TRANS.TBL into the memory;
- Mind, here, that the TRANS.TBL has the following format:
F: indicates the entry is a file. D: indicates the entry is a directory. | An empty space. | | The file name in the ISO. | | | An arbitrary amount of spaces, | | | which may also contain tabs. | | | | The displayed name (and also the | | | | name we're looking for). | | | | | Each line always will end with | | | | | a '\n'. | | | | | | v v v v v v [F|D] given_name shown_name
- Check in the TRANS.TBL whether the dir/file exists;
- If existent:
- Get its given_name;
- Loop, again, into the current directory record searching for the dir/file directory record location (searching by the dir/file given_name instead of shown_name);
- Load the TRANS.TBL into the memory;
- If not existent:
- Follow the current implementation
- If existent: