Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-06-02 | Cleanup: libsqfs: merge dir cache code back into dir_reader.c | David Oberhollenzer | |
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at> | |||
2022-06-02 | Cleanup: libsqfs: move directory iteration out of the directory reader | David Oberhollenzer | |
Add a simple directory state object to the meta data reader and use that to iterate directory entries. The code for reading the directory listing is movde to readdir.c Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at> | |||
2022-04-09 | Add support for '.' and '..' entries in sqfs_dir_reader_t | David Oberhollenzer | |
Two flags are added to the dir reader API, one for the create function that the dir reader should report those entries and one to the open function to suppress that if it was enabled. To implement the feature, a mapping of visited directory inodes is maintained internally, that mapps inode numbers to inode references. When opening a directory, state is maintained to generate the fake entries for '.' and '..'. Since all the other functions are based on the open/read/rewind API, no alterations need to be made. The tree scan function is modified, to use the suppress flag, so it does not accidentally catch those entries. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at> | |||
2022-04-05 | libsqfs: move dir reader code to sub directory, add internal header | David Oberhollenzer | |
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at> |