decompresion error when using jffs2

Jack Lu jlu at rdmcorp.com
Thu Sep 26 13:47:10 EDT 2002


Hi
	I have mounted the jffs2 filesystem by:
	#mount /dev/mtdblock/1 /tmp

	Then I copied a file by:
	#cp /mnt/test.c /tmp/t.c

	one prompt displayed:
	inflate returned -3. -3 means Z_DATA_ERROR. 

	I checked the file fs/jffs2/compr_zlib.c
	jffs2_zlib_decompress(..){
		...
		while(ret=zlib_inflate(&strm,ZFINISH))==Z_OK);
		if(ret!=Z_STREAM_END){
			printk(KERN_NOTICE :inflate returned %d\n",ret);
			}
		....
		}

	but I compared the /tmp/t.c and /mnt/test.c, there was no difference.


	Why does this prompt occur?

Thanks.

	





More information about the linux-mtd mailing list