mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ext4 filesystem support
@ 2012-12-03 10:27 Sascha Hauer
  2012-12-03 10:27 ` [PATCH 1/4] ls command: call stat() only when necessary Sascha Hauer
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Sascha Hauer @ 2012-12-03 10:27 UTC (permalink / raw)
  To: barebox

Hi All,

The following adds ext4 readonly filesystem support to barebox.
The implementation is from U-Boot which recently gained ext4
support.
ext filesystems can automatically be detected, so the -t option
to mount is not necessary. Some preparation is needed because
ext filesystems have their magic at byte offset 1080. Currently
we do not pass in such a big buffer into the filesystem detection
code. To fix this we now pass the buffer size to the file detection
code so that we do not read past the buffer.

Sascha

----------------------------------------------------------------
Sascha Hauer (4):
      ls command: call stat() only when necessary
      filetype: Pass bufsize
      add ext fs detection support
      fs: implement initial ext4 support from U-Boot

 arch/arm/lib/bootm.c                 |    2 +-
 arch/arm/mach-imx/imx-bbu-internal.c |    4 +-
 commands/bootm.c                     |    2 +-
 commands/ls.c                        |    9 +-
 common/filetype.c                    |   47 ++-
 common/uimage.c                      |    2 +-
 fs/Kconfig                           |    2 +
 fs/Makefile                          |    1 +
 fs/ext4/Kconfig                      |    3 +
 fs/ext4/Makefile                     |    1 +
 fs/ext4/ext4_common.c                |  551 ++++++++++++++++++++++++++++++++++
 fs/ext4/ext4_common.h                |   58 ++++
 fs/ext4/ext4fs.c                     |  153 ++++++++++
 fs/ext4/ext4fs.h                     |  127 ++++++++
 fs/ext4/ext_barebox.c                |  293 ++++++++++++++++++
 fs/ext4/ext_common.h                 |  195 ++++++++++++
 include/filetype.h                   |    5 +-
 lib/gui/image_renderer.c             |    6 +-
 lib/uncompress.c                     |    4 +-
 19 files changed, 1438 insertions(+), 27 deletions(-)
 create mode 100644 fs/ext4/Kconfig
 create mode 100644 fs/ext4/Makefile
 create mode 100644 fs/ext4/ext4_common.c
 create mode 100644 fs/ext4/ext4_common.h
 create mode 100644 fs/ext4/ext4fs.c
 create mode 100644 fs/ext4/ext4fs.h
 create mode 100644 fs/ext4/ext_barebox.c
 create mode 100644 fs/ext4/ext_common.h

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-12-03 10:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-03 10:27 [PATCH] ext4 filesystem support Sascha Hauer
2012-12-03 10:27 ` [PATCH 1/4] ls command: call stat() only when necessary Sascha Hauer
2012-12-03 10:27 ` [PATCH 2/4] filetype: Pass bufsize Sascha Hauer
2012-12-03 10:27 ` [PATCH 3/4] add ext fs detection support Sascha Hauer
2012-12-03 10:27 ` [PATCH 4/4] fs: implement initial ext4 support from U-Boot Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox