jffs2 with sync burst mode
Konstantin Kletschke
lists at ku-gbr.de
Thu Mar 10 13:53:57 EST 2005
Look at this quick, dirty hack:
printk("rd->nsize before memcpy: %x\n", rd->nsize);
printk("rd->name: %c %x\n", rd->name[0], rd->name[0]);
printk("rd->name: %c %x\n", rd->name[11], rd->name[11]);
printk("rd->name: %c %x\n", rd->name[12], rd->name[12]);
printk("rd->name: %c %x\n", rd->name[13], rd->name[13]);
memcpy(&fd->name, rd->name, rd->nsize);
printk("rd->nsize after memcpy: %x\n", rd->nsize);
printk("rd->name: %c %x\n", rd->name[0], rd->name[0]);
printk("rd->name: %c %x\n", rd->name[11], rd->name[11]);
printk("rd->name: %c %x\n", rd->name[12], rd->name[12]);
printk("rd->name: %c %x\n", rd->name[13], rd->name[13]);
rd->nsize before memcpy: 14
rd->name: l 6c
rd->name: n 6e
rd->name: g 67
rd->name: - 2d
rd->nsize after memcpy: 14
rd->name: l 6c
rd->name: n 6e
rd->name: g 67
rd->name: - 2d
fd->name: linux-wlan-nÒ
jffs2_scan_dirent_node(): Name CRC failed on node at 0x0047aa4c: Read 0xb9570647, calculated 0x6ac2e146
Name for which CRC failed is (now) 'linux-wlan-nÒ', ino #210
printk("rd->nsize before memcpy: %x\n", rd->nsize);
printk("rd->name: %c %x\n", rd->name[0], rd->name[0]);
printk("rd->name: %c %x\n", rd->name[14], rd->name[14]);
printk("rd->name: %c %x\n", rd->name[15], rd->name[15]);
printk("rd->name: %c %x\n", rd->name[16], rd->name[16]);
printk("rd->name: %c %x\n", rd->name[17], rd->name[17]);
memcpy(&fd->name, rd->name, rd->nsize);
printk("rd->nsize after memcpy: %x\n", rd->nsize);
printk("rd->name: %c %x\n", rd->name[0], rd->name[0]);
printk("rd->name: %c %x\n", rd->name[14], rd->name[14]);
printk("rd->name: %c %x\n", rd->name[15], rd->name[15]);
printk("rd->name: %c %x\n", rd->name[16], rd->name[16]);
printk("rd->name: %c %x\n", rd->name[17], rd->name[17]);
rd->nsize before memcpy: 16
rd->name: o 6f
rd->name: e 65
rd->name: y 79
rd->name: g 67
rd->name: e 65
rd->nsize after memcpy: 16
rd->name: o 6f
rd->name: e 65
rd->name: y 79
rd->name: g 67
rd->name: e 65
fd->name: openssh-host-key
jffs2_scan_dirent_node(): Name CRC failed on node at 0x003a52c8: Read 0x839452cb, calculated 0x262752af
Name for which CRC failed is (now) 'openssh-host-key', ino #350
So rd->name and rd->size seems to be both ok just before and after memcpy.
Weird...
Konsti
--
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E A080 1E69 3FDA EF62 FCEF
More information about the linux-mtd
mailing list