gluebi char vs block devices

Artem Bityutskiy dedekind at infradead.org
Fri Oct 3 05:19:56 EDT 2008


On Wed, 2008-10-01 at 09:50 -0500, Monte Copeland wrote:
> What is expected (correct) behavior when reading content of static UBI volumes?
> 
> / # cat /sys/class/ubi/ubi0_6/name
> kernel_0
> / # cat /sys/class/ubi/ubi0_6/data_bytes
> 3149958
> / # cat /dev/mtd/kernel_0 | wc -c
> 3149958
> / # cat /dev/mtdblock/kernel_0 | wc -c
> 3149824
> 
> On my older UBI platform, the byte count from the
> mtdblock dev is truncated down to an even multiple
> of 512.

Monte,

I am not sure if you satisfied with my answer. But you may
glance at 'ubi_create_gluebi()' function and play with what
we assign to mtd->size.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list