From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zheng Yan Subject: Re: [PATCH] properly set blocksize when adding new device. Date: Tue, 02 Sep 2008 02:38:02 +0800 Message-ID: <48BC368A.1090709@oracle.com> References: <48BC2E18.9050506@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed To: linux-btrfs@vger.kernel.org, Chris Mason Return-path: In-Reply-To: <48BC2E18.9050506@oracle.com> List-ID: Sorry, previous patch is malformed, please use this one. --- diff -r 8fe9e10847fa volumes.c --- a/volumes.c Thu Aug 28 06:21:17 2008 -0400 +++ b/volumes.c Tue Sep 02 02:33:12 2008 +0800 @@ -1078,6 +1078,8 @@ if (ret) goto out_close_bdev; + set_blocksize(device->bdev, 4096); + total_bytes = btrfs_super_total_bytes(&root->fs_info->super_copy); btrfs_set_super_total_bytes(&root->fs_info->super_copy, total_bytes + device->total_bytes);