On 3 April 2012 02:15, Liu Bo liubo2...@cn.fujitsu.com wrote:
On 04/02/2012 08:17 PM, David Sterba wrote:
On Mon, Apr 02, 2012 at 07:28:18PM +0800, Liu Bo wrote:
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2104,6 +2104,14 @@ int open_ctree(struct super_block *sb,
err =
Our code is not ready to cope with a sectorsize that's larger than PAGE_SIZE.
Signed-off-by: Liu Bo liubo2...@cn.fujitsu.com
---
fs/btrfs/disk-io.c |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 20196f4..08e49d2
On Mon, Apr 02, 2012 at 07:28:18PM +0800, Liu Bo wrote:
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2104,6 +2104,14 @@ int open_ctree(struct super_block *sb,
err = -EINVAL;
goto fail_alloc;
}
+ if (btrfs_super_sectorsize(disk_super)
On 04/02/2012 08:17 PM, David Sterba wrote:
On Mon, Apr 02, 2012 at 07:28:18PM +0800, Liu Bo wrote:
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2104,6 +2104,14 @@ int open_ctree(struct super_block *sb,
err = -EINVAL;
goto fail_alloc;
}
+if