All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ferenc Wagner <wferi@niif.hu>
To: Phillip Lougher <phillip@lougher.demon.co.uk>,
	Phillip Lougher <phillip.lougher@gmail.com>,
	linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-embedded@vger.kernel.org
Cc: Ferenc Wagner <wferi@niif.hu>
Subject: [PATCH 0/3] RFC: direct MTD support for SquashFS
Date: Tue, 30 Mar 2010 15:32:46 +0200	[thread overview]
Message-ID: <1269955969-26123-1-git-send-email-wferi@niif.hu> (raw)
In-Reply-To: <87mxxxltk6.fsf@tac.ki.iif.hu>

Hi,

Here is another, very different take on the subject.  It isn't a real
plugin system, but touches as little existing code as possible, and
still quite easy to extend if needed.  The MTD with LZMA case is somewhat
challenged, as the current interface mismatch requires extra copying.
It seems fairly easy to change the kernel decompressor interface to
scatter/gather operation in the future, to do away with this.

This patch does not consider SQUASHFS_METADATA_SIZE during buffer_head
allocation in block.c, on the principle of hands-off.

Extra question: does squashfs_put_super require BKL protection?

Comments welcome.

Regards,
Feri.

Ferenc Wagner (3):
  squashfs: parametrize decompressors on buffer_head operations
  squashfs: gather everything block device specific into block.c
  squashfs: add MTD backend

 fs/squashfs/Kconfig        |    2 +-
 fs/squashfs/Makefile       |    6 +-
 fs/squashfs/backend.c      |   63 +++++++++++++++
 fs/squashfs/backend.h      |   12 +++
 fs/squashfs/block.c        |   42 +++++++---
 fs/squashfs/decompressor.h |    8 +-
 fs/squashfs/lzma_wrapper.c |   11 ++-
 fs/squashfs/mtd.c          |  179 ++++++++++++++++++++++++++++++++++++++++++++
 fs/squashfs/squashfs.h     |   22 +++++-
 fs/squashfs/super.c        |   45 +++---------
 fs/squashfs/zlib_wrapper.c |   13 ++--
 11 files changed, 337 insertions(+), 66 deletions(-)
 create mode 100644 fs/squashfs/backend.c
 create mode 100644 fs/squashfs/backend.h
 create mode 100644 fs/squashfs/mtd.c


WARNING: multiple messages have this Message-ID (diff)
From: Ferenc Wagner <wferi@niif.hu>
To: Phillip Lougher <phillip@lougher.demon.co.uk>,
	Phillip Lougher <phillip.lougher@gmail.com>,
	linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org,
	linux-kernel@vger.kernel.org,
Cc: Ferenc Wagner <wferi@niif.hu>
Subject: [PATCH 0/3] RFC: direct MTD support for SquashFS
Date: Tue, 30 Mar 2010 15:32:46 +0200	[thread overview]
Message-ID: <1269955969-26123-1-git-send-email-wferi@niif.hu> (raw)
In-Reply-To: <87mxxxltk6.fsf@tac.ki.iif.hu>

Hi,

Here is another, very different take on the subject.  It isn't a real
plugin system, but touches as little existing code as possible, and
still quite easy to extend if needed.  The MTD with LZMA case is somewhat
challenged, as the current interface mismatch requires extra copying.
It seems fairly easy to change the kernel decompressor interface to
scatter/gather operation in the future, to do away with this.

This patch does not consider SQUASHFS_METADATA_SIZE during buffer_head
allocation in block.c, on the principle of hands-off.

Extra question: does squashfs_put_super require BKL protection?

Comments welcome.

Regards,
Feri.

Ferenc Wagner (3):
  squashfs: parametrize decompressors on buffer_head operations
  squashfs: gather everything block device specific into block.c
  squashfs: add MTD backend

 fs/squashfs/Kconfig        |    2 +-
 fs/squashfs/Makefile       |    6 +-
 fs/squashfs/backend.c      |   63 +++++++++++++++
 fs/squashfs/backend.h      |   12 +++
 fs/squashfs/block.c        |   42 +++++++---
 fs/squashfs/decompressor.h |    8 +-
 fs/squashfs/lzma_wrapper.c |   11 ++-
 fs/squashfs/mtd.c          |  179 ++++++++++++++++++++++++++++++++++++++++++++
 fs/squashfs/squashfs.h     |   22 +++++-
 fs/squashfs/super.c        |   45 +++---------
 fs/squashfs/zlib_wrapper.c |   13 ++--
 11 files changed, 337 insertions(+), 66 deletions(-)
 create mode 100644 fs/squashfs/backend.c
 create mode 100644 fs/squashfs/backend.h
 create mode 100644 fs/squashfs/mtd.c

  parent reply	other threads:[~2010-03-30 14:21 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-16 13:38 RFC: direct MTD support for SquashFS Ferenc Wagner
2010-03-16 13:38 ` Ferenc Wagner
2010-03-16 14:26 ` Peter Korsgaard
2010-03-16 14:26   ` Peter Korsgaard
2010-03-16 19:18   ` Vitaly Wool
2010-03-16 19:18     ` Vitaly Wool
2010-03-16 19:18     ` Vitaly Wool
2010-03-18 16:38   ` Ferenc Wagner
2010-03-18 16:38     ` Ferenc Wagner
2010-03-18 16:38     ` Ferenc Wagner
2010-03-18 16:38     ` Ferenc Wagner
2010-03-18 21:40     ` Phillip Lougher
2010-03-18 21:40       ` Phillip Lougher
2010-03-18 22:52       ` Ferenc Wagner
2010-03-19  1:05       ` Ferenc Wagner
2010-03-19  7:30         ` Phillip Lougher
2010-03-19 14:12           ` Ferenc Wagner
2010-03-23 11:34       ` Ferenc Wagner
2010-03-23 11:34         ` Ferenc Wagner
2010-03-23 20:45       ` Ferenc Wagner
2010-03-23 20:47       ` Ferenc Wagner
2010-03-23 20:47         ` Ferenc Wagner
2010-03-24  5:23         ` Phillip Lougher
2010-03-24  5:23           ` Phillip Lougher
2010-03-24  6:35           ` Peter Korsgaard
2010-03-24  6:35             ` Peter Korsgaard
2010-03-24 11:28             ` Ferenc Wagner
2010-03-24 11:35               ` Peter Korsgaard
2010-03-24 13:48           ` Ferenc Wagner
2010-03-24 13:48             ` Ferenc Wagner
2010-03-30 13:32             ` [PATCH 0/3] " Ferenc Wagner
2010-03-30 13:32             ` Ferenc Wagner [this message]
2010-03-30 13:32               ` Ferenc Wagner
2010-03-31  6:35               ` Marco Stornelli
2010-03-31  6:35                 ` Marco Stornelli
2010-03-30 13:32             ` [PATCH 1/3] squashfs: parametrize decompressors on buffer_head operations Ferenc Wagner
2010-03-30 13:32             ` Ferenc Wagner
2010-03-30 13:32               ` Ferenc Wagner
2010-03-30 13:32             ` [PATCH 2/3] squashfs: gather everything block device specific into block.c Ferenc Wagner
2010-03-30 13:32               ` Ferenc Wagner
2010-03-30 16:50               ` Ferenc Wagner
2010-03-30 16:50                 ` Ferenc Wagner
2010-03-30 13:32             ` Ferenc Wagner
2010-03-30 13:32             ` [PATCH 3/3] squashfs: add MTD backend Ferenc Wagner
2010-03-30 13:32               ` Ferenc Wagner
2010-03-30 13:32               ` Ferenc Wagner

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=1269955969-26123-1-git-send-email-wferi@niif.hu \
    --to=wferi@niif.hu \
    --cc=linux-embedded@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=phillip.lougher@gmail.com \
    --cc=phillip@lougher.demon.co.uk \
    /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 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.