3 ms·
They are not the same thing. Check them with 'ls -lsh' and you'll see the sparse file from truncate uses no sectors. Whereas the fallocated file is fully preall
by cmurf 6y ago
They are not the same thing. Check them with 'ls -lsh' and you'll see the sparse file from truncate uses no sectors. Whereas the fallocated file is fully preallocated.
If you have 100G free, truncate -S 1T will succeed, fallocate -l 1T will not.
- segfaultbuserr 6y agoAh, yes. I stand corrected. I've mixed up the concept of preallocating an uninitialized file and a true sparse file.