JFFS2 compression
Ferenc Havasi
havasi at inf.u-szeged.hu
Tue Oct 19 08:06:51 EDT 2004
Artem B. Bityuckiy wrote:
> It isn't needed to store the default compression mode *on flash*. If you
> just move the variable jffs2_compression mode to the jffs2_sb_info
> structure, you will have per-filesystems compression mode. This means,
> for example, that if user changes (dynamically) the compression mode for
> one file-system, the compression mode for another file system isn't
> changed.
I undersand you, but unfortunatelly now there is no way to change
compression mode dimamically. There was (using procfs) but when David
tried to commit it to the kernel, someone (I don't remember who but one
of the kernel developers) declared it bad.
David asked me to reimplement it is sysfs, but that is not an easy
thing. Not technically. There is no fs subdirectory in sysfs. I read in
the mailling list archive of linux-fsdevel at vger.kernel.org. Someone
tried to submit a patch to make this fs subdirectory, because he need it
for NFS. The answer declared it as very bad, too... (sysfs has a
different philosopy...) I had some private discussion with the patch
submitter (what happened exactly, what was really the problem,... what
is his plan). He wrote that he try it again later. He think the guy who
declared his patch bad really hates sysfs (and procfs too). So I decided
to wait, too. :(
But this new "compressoin configuration" concept may cause that we don't
need sysfs/procfs.
Bye,
Ferenc
More information about the linux-mtd
mailing list