Re: [PATCH] Btrfs: do not mount when we have a sectorsize larger than PAGE_SIZE

2012-04-04 Thread James Courtier-Dutton
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 =

[PATCH] Btrfs: do not mount when we have a sectorsize larger than PAGE_SIZE

2012-04-02 Thread Liu Bo
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

Re: [PATCH] Btrfs: do not mount when we have a sectorsize larger than PAGE_SIZE

2012-04-02 Thread David Sterba
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)

Re: [PATCH] Btrfs: do not mount when we have a sectorsize larger than PAGE_SIZE

2012-04-02 Thread Liu Bo
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