[U-Boot] [PATCH v2 7/8] fat/fs: move ls to generic implementation

Simon Glass sjg at chromium.org
Tue Sep 5 08:56:36 UTC 2017


On 3 September 2017 at 00:38, Rob Clark <robdclark at gmail.com> wrote:
> Add a generic implementation of 'ls' using opendir/readdir/closedir, and
> replace fat's custom implementation.  Other filesystems should move to
> the generic implementation after they add opendir/readdir/closedir
> support.
>
> Signed-off-by: Rob Clark <robdclark at gmail.com>
> ---
>  fs/fat/fat.c  | 32 --------------------------------
>  fs/fs.c       | 35 +++++++++++++++++++++++++++++++++--
>  include/fat.h |  5 ++++-
>  3 files changed, 37 insertions(+), 35 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

So if all filesystems implement this interface then we could move this
to function to the fs layer?


More information about the U-Boot mailing list