* mkfs.btrfs allow to set the sectorsize by the -s option but the kernel doesnot
@ 2012-10-24 6:39 Ins
2012-10-25 14:58 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Ins @ 2012-10-24 6:39 UTC (permalink / raw)
To: linux-btrfs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mkfs.btrfs allow to set the sectorsize by the -s option but the kernel doesnot
2012-10-24 6:39 mkfs.btrfs allow to set the sectorsize by the -s option but the kernel doesnot Ins
@ 2012-10-25 14:58 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2012-10-25 14:58 UTC (permalink / raw)
To: Ins; +Cc: linux-btrfs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-25 14:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-24 6:39 mkfs.btrfs allow to set the sectorsize by the -s option but the kernel doesnot Ins
2012-10-25 14:58 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).