linux-ftools icon indicating copy to clipboard operation
linux-ftools copied to clipboard

fallocate is unable to increase the size of file

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

What steps will reproduce the problem?
1. gcc fallocate.c 
2. ./a.out file.txt 10000000
3. ls -al

What is the expected output? What do you see instead?
upon ls -al the size should be increased by 10000000. Instead the file size 
remains same as it was before executing falloc.

What version of the product are you using? On what operating system?
linux 3.4 kernel ext4

Please provide any additional information below.
Please have look at the attached file depicting commands i have execute.Am i 
doing something wrong.

Original issue reported on code.google.com by [email protected] on 6 Aug 2012 at 10:20

Attachments:

GoogleCodeExporter avatar Aug 19 '15 09:08 GoogleCodeExporter