mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] ext4 filesystem support
Date: Mon,  3 Dec 2012 11:27:44 +0100	[thread overview]
Message-ID: <1354530468-25823-1-git-send-email-s.hauer@pengutronix.de> (raw)

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

             reply	other threads:[~2012-12-03 10:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-03 10:27 Sascha Hauer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1354530468-25823-1-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox