Erase unit header corrupted when using FTL
Brian Kuschak
brian.kuschak at skystream.com
Sun Nov 5 17:52:57 EST 2000
Hello,
I'm having a major problem when using the FTL. I format and mount a
filesystem on the FTL device, and do this:
- copy a file onto the device
- sync
- remove the file
- sync
- copy another file onto the device
- sync.
The file is ~84KB and the sector size is 128KB. The second copy causes the
FTL to start erasing the first erase unit. At this point, the erase always
fails. Seems like the erase unit is not getting a valid header written to
it after being erased. I can verify that the erase callback is being
called. Any ideas?
Thanks,
Brian Kuschak
Just after format:
sh-2.03# /tmp/ftl_check /dev/mtd0
Memory region info:
Region size = 256 kb Erase block size = 128 kb
Partition header:
Formatted size = 125440 bytes, erase units = 2, transfer units = 1
Erase unit size = 128 kb, virtual block size = 512 bytes
Erase unit 0:
Logical unit 0, erase count = 0
Block allocation: 3 control, 208 data, 25 free, 20 deleted
Erase unit 1:
Transfer unit, erase count = 0
After the second copy and sync. These error messages repeat for about 120
sectors.
sh-2.03# cp /bin/ftp /mnt/
sh-2.03# sync
In erase callback.
ftl_cs: erase failed: state = 192
ftl_cs: reclaim failed: no suitable transfer units!
ftl_write returned -5
end_request: I/O error, dev 2c:00 (ftl), sector 78
ftl_cs: reclaim failed: no suitable transfer units!
ftl_write returned -5
end_request: I/O error, dev 2c:00 (ftl), sector 80
ftl_cs: reclaim failed: no suitable transfer units!
sh-2.03# /tmp/ftl_check /dev/mtd0
Memory region info:
Region size = 256 kb Erase block size = 128 kb
Partition header:
Formatted size = 125440 bytes, erase units = 2, transfer units = 1
Erase unit size = 128 kb, virtual block size = 512 bytes
Erase unit 0:
Erase unit header is corrupt.
Erase unit 1:
Logical unit 0, erase count = 0
Block allocation: 3 control, 208 data, 1 free, 44 deleted
sh-2.03#
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list