From: Ins <insfocus@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: mkfs.btrfs allow to set the sectorsize by the -s option but the kernel doesnot
Date: Wed, 24 Oct 2012 14:39:34 +0800 [thread overview]
Message-ID: <CAMRmmpK8rYQDRWVM6nxsc2kouFNPyAnwAfB6Y19Ha40rLdeejA@mail.gmail.com> (raw)
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
next reply other threads:[~2012-10-24 6:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-24 6:39 Ins [this message]
2012-10-25 14:58 ` mkfs.btrfs allow to set the sectorsize by the -s option but the kernel doesnot David Sterba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMRmmpK8rYQDRWVM6nxsc2kouFNPyAnwAfB6Y19Ha40rLdeejA@mail.gmail.com \
--to=insfocus@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).