On Sun, Jun 4, 2017 at 5:11 PM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote: > > For UFS2 - yes, for UFS1 we have another hard limit I'd missed. i_blocks > is in half-kilobyte units there and it's 32bit on-disk. So for UFS1 I'd > cap it with 1Tb (the real limit is ~ 2Tb - 2Mb, but accurate calculation > is a bit of a bother). Come to think of that, the minimal block size for > UFS1 is 4K with pointers-per-block >= 1024. So tree-imposed limit is > no lower than 1024^3*4096, i.e. greater than that and we could make > ->s_maxbytes unconditional 1Tb for UFS1. The nblocks limit (and the 32-bit block numbers) might not limit a sparse file, so I think the tree-imposed limit might be the final true limit even on UFS1, no? Linus