linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Btrfs: let super_stripesize match with sectorsize
@ 2016-06-14 21:33 Liu Bo
  2016-06-15  3:42 ` Chandan Rajendra
  0 siblings, 1 reply; 10+ messages in thread
From: Liu Bo @ 2016-06-14 21:33 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Eryu Guan, David Sterba

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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-06-17 16:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-14 21:33 [PATCH] Btrfs: let super_stripesize match with sectorsize Liu Bo
2016-06-15  3:42 ` 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

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