Patchwork [mtd-utils] mkfs.jffs2: fix --enable-compressor

login
register
mail settings
Submitter Adrian Bunk
Date Feb. 24, 2010, 1:32 p.m.
Message ID <20100224133229.GA23442@localhost.pp.htv.fi>
Download mbox | patch
Permalink /patch/46120/
State Accepted
Commit fcf4d8f72676fa0c89d0dc3a69109d8f95018d22
Headers show

Comments

Adrian Bunk - Feb. 24, 2010, 1:32 p.m.
The short option -X was working, but the documented long option
--enable-compressor was missing.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
 mkfs.jffs2.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Artem Bityutskiy - March 31, 2010, 1:50 p.m.
On Wed, 2010-02-24 at 15:32 +0200, Adrian Bunk wrote:
> The short option -X was working, but the documented long option
> --enable-compressor was missing.
> 
> Signed-off-by: Adrian Bunk <bunk@kernel.org>

Pushed to the mtd-utils.git tree, thanks!

Patch

diff --git a/mkfs.jffs2.c b/mkfs.jffs2.c
index 23a8cf8..64cafb6 100644
--- a/mkfs.jffs2.c
+++ b/mkfs.jffs2.c
@@ -1468,6 +1468,7 @@  static struct option long_options[] = {
 	{"devtable", 1, NULL, 'D'},
 	{"compression-mode", 1, NULL, 'm'},
 	{"disable-compressor", 1, NULL, 'x'},
+	{"enable-compressor", 1, NULL, 'X'},
 	{"test-compression", 0, NULL, 't'},
 	{"compressor-priority", 1, NULL, 'y'},
 	{"incremental", 1, NULL, 'i'},