On Saturday November 4, [EMAIL PROTECTED] wrote:
> Hi,
> 
> I'm setting up a raid 5 system and I ran across a bug when reshaping an 
> array with a mounted XFS filesystem on it.  This is under linux 2.6.18.2 
> and mdadm 2.5.5
> 
...
> [EMAIL PROTECTED] $ mdadm --detail /dev/md4
> /dev/md4:
>         Version : 00.90.03
>   Creation Time : Sat Nov  4 18:58:59 2006
>      Raid Level : raid5
>  >>
>  >>    Array Size : 2086592 (2038.03 MiB 2136.67 MB)
>  >>
>     Device Size : 10482240 (10.00 GiB 10.73 GB)
>    Raid Devices : 4
>   Total Devices : 4
> Preferred Minor : 4
>     Persistence : Superblock is persistent
> 
> (2086592 != 31446720 -- Bad, much too small)


You have CONFIG_LBD=n don't you?

Thanks for the report.  This should fix it.  Please let me know if it does.

NeilBrown

Signed-off-by: Neil Brown <[EMAIL PROTECTED]>

### Diffstat output
 ./drivers/md/raid5.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff .prev/drivers/md/raid5.c ./drivers/md/raid5.c
--- .prev/drivers/md/raid5.c    2006-11-03 15:11:52.000000000 +1100
+++ ./drivers/md/raid5.c        2006-11-06 09:55:20.000000000 +1100
@@ -3909,7 +3909,7 @@ static void end_reshape(raid5_conf_t *co
                bdev = bdget_disk(conf->mddev->gendisk, 0);
                if (bdev) {
                        mutex_lock(&bdev->bd_inode->i_mutex);
-                       i_size_write(bdev->bd_inode, conf->mddev->array_size << 
10);
+                       i_size_write(bdev->bd_inode, 
(loff_t)conf->mddev->array_size << 10);
                        mutex_unlock(&bdev->bd_inode->i_mutex);
                        bdput(bdev);
                }
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to