Duplicate blocks during mounting of flash disk
supremenasir at yahoo.com
Mon Nov 14 09:43:36 UTC 2011
When i try to mount the RFS on a flash device, i get the following errors.
fdisk:error:duplicate block: 0-0-104: duplicate: 0-0-108
fdisk:error:duplicate block: 0-0-104: duplicate: 0-0-112
After this the code crashes in function rtems_rfs_buffer_handle_request() as it tries to access a write protected location and generates a bus error exception.
I use the below configuration and have 5 sectors of 64KB each allocated for the RFS.
const rtems_flashdisk_config rtems_flashdisk_configuration =
block_size: FLASHDISK_BLOCK_SIZE, //512
Changing compact_segs and avail_compact_segs to 100 also does not work.
Surprisingly, this same code used to work earlier, but now i see the above read errors and the crash.
Can anyone guide why do we have those duplicate block prints?
More information about the users