Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Liu Bo <bo.li.liu@oracle.com>
Cc: Eryu Guan <guaneryu@gmail.com>, linux-btrfs@vger.kernel.org
Subject: Re: BUG: unable to mount btrfs on ppc64 starting from v4.7-rc3 kernel
Date: Wed, 15 Jun 2016 17:33:35 +0200	[thread overview]
Message-ID: <20160615153335.GL6205@twin.jikos.cz> (raw)
In-Reply-To: <20160614182404.GA4398@localhost.localdomain>

On Tue, Jun 14, 2016 at 11:24:04AM -0700, Liu Bo wrote:
> > [ 1910.048650] BTRFS: device fsid 06813ff6-d585-4c54-b4df-b7d6920d27ba devid 1 transid 3 /dev/vda3
> > [ 1913.152085] BTRFS error (device vda3): invalid stripesize 4096
> > [ 1913.154349] BTRFS error (device vda3): superblock contains fatal errors
> > [ 1913.200300] BTRFS: open_ctree failed
> 
> Ah, that's right, we need to update btrfs-progs to set super_stripesize to
> sectorsize.
> 
> In mkfs.c we have,
> 
> {
> 	u32 sectorsize = 4096;
> 	u32 stripesize = 4096;
> 	...
> 	sectorsize = max(sectorsize, (u32)sysconf(_SC_PAGESIZE));
> 	...
> 	mkfs_cfg.sectorsize = sectorsize;
> 	mkfs_cfg.stripesize = stripesize;
> 
> 	ret = make_btrfs(fd, &mkfs_cfg, NULL);
> 	...
> }

Yeah we need to fix progs and allow the 4k value in kernel, Chandan will
send a patch.

      reply	other threads:[~2016-06-15 15:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-14 11:13 BUG: unable to mount btrfs on ppc64 starting from v4.7-rc3 kernel Eryu Guan
2016-06-14 18:24 ` Liu Bo
2016-06-15 15:33   ` David Sterba [this message]

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=20160615153335.GL6205@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=bo.li.liu@oracle.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