All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/9] Replace the FAT filesystem code
@ 2015-08-08  3:09 Stephen Warren
  2015-08-08  3:09 ` [U-Boot] [PATCH 1/9] disk: support host devices in dev_print() Stephen Warren
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Stephen Warren @ 2015-08-08  3:09 UTC (permalink / raw)
  To: u-boot

The existing FAT filesystem implementation in U-Boot has some bugs that
are tricky to fix cleanly without significant rework of the code. For
example, see:

http://lists.denx.de/pipermail/u-boot/2015-July/221054.html
[PATCH] fat: handle paths that include ../

This series replaces U-Boot's FAT filesystem implementation with the "ff"
project; http://elm-chan.org/fsw/ff/00index_e.html. This project appears
to be actively maintained, does not have at least the bug referenced in
the patch link above, and is quite easy to integrate into U-Boot. An
earlier version is also used in Barebox, so presumably it's had some
level of testing/exposure there.

Note that this series is based on u-boot/master without the patch linked
above applied. I wonder if it's a little risky to apply this series after
-rc1; perhaps the patch above should be applied to v2015.10, and this
series immediately after the release?

Stephen Warren (9):
  disk: support host devices in dev_print()
  fat: move to a different directory
  fat: add ff.c implementation
  fat: apply upstream bugfix to ff.c
  fat: ffconf.h changes for U-Boot port
  fat: port integer.h to U-Boot types
  fat: add U-Boot to ff.c API conversion wrapper
  fat: switch to new FAT implementation
  fat: remove old implementation

 disk/part.c        |    3 +
 fs/fat/Makefile    |    8 +-
 fs/fat/diskio.h    |   80 +
 fs/fat/fat.c       | 1323 ---------------
 fs/fat/fat_write.c | 1115 -------------
 fs/fat/ff-uboot.c  |  356 ++++
 fs/fat/ff.c        | 4632 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 fs/fat/ff.h        |  350 ++++
 fs/fat/ffconf.h    |  277 ++++
 fs/fat/file.c      |  183 ---
 fs/fat/integer.h   |   35 +
 11 files changed, 5735 insertions(+), 2627 deletions(-)
 create mode 100644 fs/fat/diskio.h
 delete mode 100644 fs/fat/fat.c
 delete mode 100644 fs/fat/fat_write.c
 create mode 100644 fs/fat/ff-uboot.c
 create mode 100644 fs/fat/ff.c
 create mode 100644 fs/fat/ff.h
 create mode 100644 fs/fat/ffconf.h
 delete mode 100644 fs/fat/file.c
 create mode 100644 fs/fat/integer.h

-- 
1.9.1

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-08-11  4:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-08  3:09 [U-Boot] [PATCH 0/9] Replace the FAT filesystem code Stephen Warren
2015-08-08  3:09 ` [U-Boot] [PATCH 1/9] disk: support host devices in dev_print() Stephen Warren
2015-08-08  3:09 ` [U-Boot] [PATCH 2/9] fat: move to a different directory Stephen Warren
2015-08-08  3:09 ` [U-Boot] [PATCH 3/9] fat: add ff.c implementation Stephen Warren
2015-08-08  3:09 ` [U-Boot] [PATCH 4/9] fat: apply upstream bugfix to ff.c Stephen Warren
2015-08-08  3:09 ` [U-Boot] [PATCH 5/9] fat: ffconf.h changes for U-Boot port Stephen Warren
2015-08-08  3:09 ` [U-Boot] [PATCH 6/9] fat: port integer.h to U-Boot types Stephen Warren
2015-08-08  3:09 ` [U-Boot] [PATCH 7/9] fat: add U-Boot to ff.c API conversion wrapper Stephen Warren
2015-08-08  3:09 ` [U-Boot] [PATCH 8/9] fat: switch to new FAT implementation Stephen Warren
2015-08-08  3:09 ` [U-Boot] [PATCH 9/9] fat: remove old implementation Stephen Warren
2015-08-11  4:09 ` [U-Boot] [PATCH 0/9] Replace the FAT filesystem code Stephen Warren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.