简单记一下:
$ fallocate -l 180G /tmp/testfile
底下调用的就是 fallocate()/posix_fallocate() 这个系统调用。内核的话,例如 ext4,实现是在 fs/ext4/extents.c 的 ext4_fallocate
简单记一下:
$ fallocate -l 180G /tmp/testfile
底下调用的就是 fallocate()/posix_fallocate() 这个系统调用。内核的话,例如 ext4,实现是在 fs/ext4/extents.c 的 ext4_fallocate