linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 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

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).