From: Liu Bo <bo.li.liu@oracle.com>
To: linux-btrfs@vger.kernel.org
Cc: Eryu Guan <guaneryu@gmail.com>, David Sterba <dsterba@suse.com>
Subject: [PATCH] Btrfs: let super_stripesize match with sectorsize
Date: Tue, 14 Jun 2016 14:33:43 -0700 [thread overview]
Message-ID: <1465940023-27773-1-git-send-email-bo.li.liu@oracle.com> (raw)
Right now stripesize is set to 4096 while sectorsize is set to
max(4096, pagesize). However, kernel requires super_stripesize
to match with sectorsize.
Reported-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
---
mkfs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mkfs.c b/mkfs.c
index a3a3c14..8d00766 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -1482,6 +1482,8 @@ int main(int argc, char **argv)
}
sectorsize = max(sectorsize, (u32)sysconf(_SC_PAGESIZE));
+ stripesize = sectorsize;
+
saved_optind = optind;
dev_cnt = argc - optind;
if (dev_cnt == 0)
--
2.5.0
next reply other threads:[~2016-06-14 21:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-14 21:33 Liu Bo [this message]
2016-06-15 3:42 ` [PATCH] Btrfs: let super_stripesize match with sectorsize Chandan Rajendra
2016-06-15 10:20 ` Chandan Rajendra
2016-06-16 0:09 ` Liu Bo
2016-06-16 8:23 ` Chandan Rajendra
2016-06-16 17:01 ` Liu Bo
2016-06-17 5:18 ` Chandan Rajendra
2016-06-17 6:08 ` Liu Bo
2016-06-17 6:51 ` Chandan Rajendra
2016-06-17 16:30 ` 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=1465940023-27773-1-git-send-email-bo.li.liu@oracle.com \
--to=bo.li.liu@oracle.com \
--cc=dsterba@suse.com \
--cc=guaneryu@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).