Hello Neil, On 04/12/2014 01:50 AM, NeilBrown wrote: > On Fri, 11 Apr 2014 10:19:23 +0200 Francis Moreau <francis.moro@xxxxxxxxx> > wrote: > >> Hello, >> >> I'd like to know if it's possible to get the size of a RAID{5,6} which >> is not created yet but the size of the partitions which will make up the >> array are. > > How precise does the "guess" need to be? > I just need an approximation in order to report to user some information about the (raided) partition my tool is about to create. > If you subtract about 128Meg from the size of the partitions, round down the Just to be sure the size of the partitions is equal to the min size of all partitions ? > a multiple of the chunk size then multiply by the number of data disks, you > should come quite close. Thanks, that should do the trick. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html