[dm-devel] dm-thin: Why is DATA_DEV_BLOCK_SIZE_MIN_SECTORS set to 64k?

Eric Wheeler dm-devel at lists.ewheeler.net
Thu May 17 23:36:26 UTC 2018


Hello all,

Is there a technical reason that DATA_DEV_BLOCK_SIZE_MIN_SECTORS is 
limited to 64k?  

I realize that the metadata limits the maximum mappable pool size, so it 
needs to be bigger for big pools---but it is also the minimum COW size.  

Looking at the code this is enforced in pool_ctr() but isn't used anywhere 
else in the code.  Is it strictly necessary to enforce this minimum?

Thanks for your help!

--
Eric Wheeler




More information about the dm-devel mailing list