Questions tagged [fallocate-command]
Use this tag for the fallocate command, NOT fallocate system call.
9 questions
6
votes
1
answer
726
views
How to find files by size that are not divisible by 4096 and round them up
In Linux in a Folder there are many files, all created with fallocate with random size.
How to find files whose size is not divisible by 4096 and correct the filesize (rounded up) to a multiple of ...
2
votes
2
answers
3k
views
What kind of content/data does "fallocate" command generate?
When is executed the sudo fallocate -l 2G /swapfile command, then 2 GB is created, but with that kind of content or data? Can be it customized? If yes How?. I did do some research but there are no ...
13
votes
1
answer
4k
views
What are the holes in files created with fallocate?
If we create a swapfile with fallocate we are told that the file contains holes and therefore the operation is halted.
What are these holes?
Is it unallocated disk space, which makes the whole file ...
2
votes
1
answer
1k
views
Is it possible to zero the free space on a LUKS volume?
I want to have a LUKS volume as a loopback device pointing at a sparse file. Lets say I put a 20gb file on it, then later I delete it. How can I zero that area on the device itself so I can fallocate -...
13
votes
2
answers
4k
views
What is the difference between `fallocate --dig-holes` and `fallocate --punch-hole` in Linux?
I totally understand that --dig-holes creates a sparse file in-place. That is, if the file has holes --dig-holes options removes those holes:
Let's take it in a very simplified way, let's say we ...