by jagger27 · 5y ago · 0 comments
truncate -s 100T hugefile.img
fallocate --length 1TB.img
If you have 100G free, truncate -S 1T will succeed, fallocate -l 1T will not.