Skip to contentSkip to conversation

decompresion error when using jffs2

DISCUSSION Jack Lu 1 participant 1 message Sep 26, 2002 Memory technology devices (MTD)

lore
Share & tools
lore

Jack Lu

author
#0 lore raw

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.