From: Steven Scholz <steven.scholz@imc-berlin.de>
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
Cc: MTD <linux-mtd@lists.infradead.org>
Subject: Re: JFFS2 uncompressed?
Date: Tue, 08 Apr 2003 17:43:07 +0200 [thread overview]
Message-ID: <3E92EE0B.4000702@imc-berlin.de> (raw)
In-Reply-To: 20030408150331.GA32580@wohnheim.fh-wedel.de
[-- Attachment #1: Type: text/plain, Size: 374 bytes --]
Jörn Engel schrieb:
> On Tue, 8 April 2003 16:33:45 +0200, Steven Scholz wrote:
>
>>How about mkfs.jff2? Do I have to change something there as well?
>
>
> Yes, you do. Shouldn't be much more complicated, but I didn't do it
> myself yet.
>
> Could you post a patch for mkfs.jffs2, when done? Just for the
> curious.
Here you are!
Just a quick hack! :o) Enjoy!
Steven
[-- Attachment #2: jffs2-nocompress.patch --]
[-- Type: text/plain, Size: 2187 bytes --]
Index: util/mkfs.jffs2.c
===================================================================
RCS file: /home/cvs/mtd/util/mkfs.jffs2.c,v
retrieving revision 1.36
diff -p -u -r1.36 mkfs.jffs2.c
--- util/mkfs.jffs2.c 3 Apr 2003 11:49:22 -0000 1.36
+++ util/mkfs.jffs2.c 8 Apr 2003 15:41:15 -0000
@@ -98,6 +98,7 @@ static int squash_uids = 0;
static int squash_perms = 0;
static int fake_times = 0;
static int target_endian = __BYTE_ORDER;
+static int do_compress = 1;
static const char *const app_name = "mkfs.jffs2";
static const char *const memory_exhausted = "memory exhausted";
@@ -691,6 +692,9 @@ unsigned char jffs2_compress(unsigned ch
{
int ret;
+ if (! do_compress)
+ return JFFS2_COMPR_NONE; /* We don't want to compress */
+
ret = jffs2_zlib_compress(data_in, cpage_out, datalen, cdatalen);
if (!ret) {
return JFFS2_COMPR_ZLIB;
@@ -1177,6 +1181,7 @@ static struct option long_options[] = {
{"no-cleanmarkers", 0, NULL, 'n'},
{"cleanmarker", 1, NULL, 'c'},
{"squash", 0, NULL, 'q'},
+ {"no-compression", 0, NULL, 'u'},
{"squash-uids", 0, NULL, 'U'},
{"squash-perms", 0, NULL, 'P'},
{"faketime", 0, NULL, 'f'},
@@ -1202,6 +1207,7 @@ static char *helptext =
" -D, --devtable=FILE Use the named FILE as a device table file\n"
" -f, --faketime Change all file times to '0' for regression testing\n"
" -q, --squash Squash permissions and owners making all files be owned by root\n"
+ " -u, --no-compression Don't use any compression\n"
" -U, --squash-uids Squash owners making all files be owned by root\n"
" -P, --squash-perms Squash permissions on all files\n"
" -h, --help Display this help text\n"
@@ -1220,7 +1226,7 @@ int main(int argc, char **argv)
struct filesystem_entry *root;
while ((opt = getopt_long(argc, argv,
- "D:d:r:s:o:qUPfh?vVe:lbp::nc:", long_options, &c)) >= 0)
+ "D:d:r:s:o:quUPfh?vVe:lbp::nc:", long_options, &c)) >= 0)
{
switch (opt) {
case 'D':
@@ -1256,6 +1262,10 @@ int main(int argc, char **argv)
case 'q':
squash_uids = 1;
squash_perms = 1;
+ break;
+
+ case 'u':
+ do_compress = 0;
break;
case 'U':
next prev parent reply other threads:[~2003-04-08 15:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 13:59 JFFS2 uncompressed? Steven Scholz
2003-04-08 14:19 ` Jörn Engel
2003-04-08 14:33 ` Steven Scholz
2003-04-08 15:03 ` Jörn Engel
2003-04-08 15:06 ` Steven Scholz
2003-04-08 15:56 ` Jörn Engel
2003-04-08 15:43 ` Steven Scholz [this message]
2003-04-08 16:00 ` Jörn Engel
2003-04-08 16:05 ` Steven Scholz
2003-04-08 16:08 ` David Woodhouse
2003-04-08 16:30 ` Thayne Harbaugh
2003-04-08 16:33 ` David Woodhouse
2003-04-11 6:44 ` Steven Scholz
2003-04-08 15:46 ` Steven Scholz
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=3E92EE0B.4000702@imc-berlin.de \
--to=steven.scholz@imc-berlin.de \
--cc=joern@wohnheim.fh-wedel.de \
--cc=linux-mtd@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 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.