Ins
2012-Oct-24 06:39 UTC
mkfs.btrfs allow to set the sectorsize by the -s option but the kernel doesnot
Hi all,
mkfs.btrfs allows to set the sectorsize by the -s option.
mkfs.btrfs -s 8192 /dev/loop0
Then when I do mount, I got these messages:
[13912.224463] btrfs: Incompatible sector size(8192) found on loop0
[13912.224660] btrfs: open_ctree failed
The related codes in the kernel fs/btrfs/disk-io.c!2366
2366 if (sectorsize != PAGE_SIZE) {
2367 printk(KERN_WARNING "btrfs: Incompatible sector
size(%lu) "
2368 "found on %s\n", (unsigned long)sectorsize,
sb->s_id);
2369 goto fail_sb_buffer;
2370 }
So the actually reason is?
Thanks.
-Rock
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
David Sterba
2012-Oct-25 14:58 UTC
Re: mkfs.btrfs allow to set the sectorsize by the -s option but the kernel doesnot
On Wed, Oct 24, 2012 at 02:39:34PM +0800, Ins wrote:> mkfs.btrfs allows to set the sectorsize by the -s option....> 2366 if (sectorsize != PAGE_SIZE) { > 2367 printk(KERN_WARNING "btrfs: Incompatible sector size(%lu) " > 2368 "found on %s\n", (unsigned long)sectorsize, sb->s_id); > 2369 goto fail_sb_buffer; > 2370 }...> So the actually reason is?The state is ''not implemented'', the sectorsize == page size is a hard requirement in current impelementation, though this may change. david -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html