Re: BUG: unable to mount btrfs on ppc64 starting from v4.7-rc3 kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux