Introduce directory traversal iterators, and implement fs_readdir() which is needed by EFI_LOADER.
The part re-working fat.c to use the directory iterators itself is nearly a 2:1 negative diffstat, and a pretty big cleanup. I fixed one or two other small issues along the way. v2: fix a couple issues (partition is whole disk, and traversing ".." up to root directory) v3: mostly addition of comments plus cleaning up open-coded sector <-> cluster conversions, and some FAT32 fixes for large directories Rob Clark (9): fs/fat: split out helper to init fsdata fs/fat: introduce new director iterators fat/fs: convert to directory iterators fs: add fs_readdir() fs/fat: implement opendir/readdir/closedir fat/fs: remove a bunch of dead code fat/fs: move ls to generic implementation fs/fat: fix case for FAT shortnames fs/fat: Clean up open-coded sector <-> cluster conversions disk/part.c | 31 +- fs/fat/Makefile | 4 - fs/fat/fat.c | 1062 ++++++++++++++++++++++------------------------------ fs/fat/fat_write.c | 12 +- fs/fat/file.c | 183 --------- fs/fs.c | 137 ++++++- include/fat.h | 49 ++- include/fs.h | 67 ++++ include/part.h | 9 + 9 files changed, 700 insertions(+), 854 deletions(-) delete mode 100644 fs/fat/file.c -- 2.13.5 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot