Patch for passing JFFS2 options at mount time

Ronny L Nilsson rln-mtd at arbetsmyra.dyndns.org
Tue May 2 17:44:19 EDT 2006


Hi

Attached is a patch for passing mount options to JFFS2. I was in the 
need for controlling the compression mode for JFFS2 filesystems on a 
per mount basis but found that up till now a recompile of the kernel 
was the only way to change the active mode in use (?). With this patch 
different filesystems can use different compressor modes, configurable 
at mount time. They can change mode on the fly via a remount too.

For example:
mount -t jffs2 mtd1 /flash -o compressor=none
mount -t jffs2 mtd1 /flash -o compressor=priority


Let me know what you think of it.
Best Regards
/Ronny Nilsson








-------------- next part --------------
A non-text attachment was scrubbed...
Name: jffs2-mountoptions.patch
Type: text/x-diff
Size: 8975 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20060502/80b5b67f/attachment.bin 


More information about the linux-mtd mailing list