Re: Crashes running btrfs scrub

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

 



On 03/18/2018 08:57 AM, Goffredo Baroncelli wrote:
> 	BTRFS_SYSTEM_CHUNK_ARRAY_SIZE = 2048
> 	sizeof(struct btrfs_chunk)) = 48
> 	sizeof(struct btrfs_stripe) = 32
> 
> So
> 
> 	(2048/2-48)/32+1 = 31
> 
> If my math is correct

my math was wrong:

	sizeof(struct btrfs_chunk)=80

so the maximum number of disk is: (2048/2-80)/32+1 = 30

Does make sense putting some warning in btrfs kernel module, and in some btrfs command like:
- btrfs fi show
- btrfs dev add

and in the wiki ? 30 device are a big number, however not unreachable...


-- 
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5
--
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