* [PATCH] mtd-utils: Better document --pagesize of mkfs.jffs2
@ 2012-05-03 18:59 Shmulik Ladkani
2012-05-04 8:29 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Shmulik Ladkani @ 2012-05-03 18:59 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, Grant Edwards, Ricard Wanderlof, dedekind1
Add a strict explanation '--pagesize' refers to target system's mm page
size.
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
---
This is according to the below discussion:
http://lists.infradead.org/pipermail/linux-mtd/2012-May/041233.html
diff --git a/mkfs.jffs2.1 b/mkfs.jffs2.1
index 9b0acc3..47a3ac7 100644
--- a/mkfs.jffs2.1
+++ b/mkfs.jffs2.1
@@ -137,7 +137,8 @@ directory.
.TP
.B -s, --pagesize=SIZE
Use page size SIZE. The default is 4 KiB. This size is the
-maximum size of a data node.
+maximum size of a data node. Set according to target system's memory
+management page size (NOTE: this is NOT related to NAND page size).
.TP
.B -e, --eraseblock=SIZE
Use erase block size SIZE. The default is 64 KiB. If you use a erase
diff --git a/mkfs.jffs2.c b/mkfs.jffs2.c
index ad88ac6..d170a04 100644
--- a/mkfs.jffs2.c
+++ b/mkfs.jffs2.c
@@ -1391,7 +1391,9 @@ static const char helptext[] =
" not specified, the output is padded to the end of\n"
" the final erase block\n"
" -r, -d, --root=DIR Build file system from directory DIR (default: cwd)\n"
-" -s, --pagesize=SIZE Use page size (max data node size) SIZE (default: 4KiB)\n"
+" -s, --pagesize=SIZE Use page size (max data node size) SIZE.\n"
+" Set according to target system's memory management\n"
+" page size (default: 4KiB)\n"
" -e, --eraseblock=SIZE Use erase block size SIZE (default: 64KiB)\n"
" -c, --cleanmarker=SIZE Size of cleanmarker (default 12)\n"
" -m, --compr-mode=MODE Select compression mode (default: priortiry)\n"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd-utils: Better document --pagesize of mkfs.jffs2
2012-05-03 18:59 [PATCH] mtd-utils: Better document --pagesize of mkfs.jffs2 Shmulik Ladkani
@ 2012-05-04 8:29 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2012-05-04 8:29 UTC (permalink / raw)
To: Shmulik Ladkani
Cc: Ricard Wanderlof, Grant Edwards, linux-mtd, David Woodhouse
[-- Attachment #1: Type: text/plain, Size: 285 bytes --]
On Thu, 2012-05-03 at 21:59 +0300, Shmulik Ladkani wrote:
> Add a strict explanation '--pagesize' refers to target system's mm page
> size.
>
> Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Pushed to mtd-utils.git, thanks!
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-04 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03 18:59 [PATCH] mtd-utils: Better document --pagesize of mkfs.jffs2 Shmulik Ladkani
2012-05-04 8:29 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).