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.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to