Hi All,
This is not actually kernel problem, but I thought of discussing this here.
I have created a 2 GB file through a script, but i see the size of the file through ls and du commands it is reporting different size.
for example:
adil@test:~> file test
test: character Computer Graphics Metafile
test: character Computer Graphics Metafile
adil@test:~> ls -l test
-rw-r--r-- 1 adil group 2147483648 2007-09-24 23:51 test
adil@test:~> du -b test
2147483648 test
-rw-r--r-- 1 adil group 2147483648 2007-09-24 23:51 test
adil@test:~> du -b test
2147483648 test
The above output is OK.
but when I do:
adil@test:~> ls -lh test
-rw-r--r-- 1 adil group 2.0G 2007-09-24 23:51 test
adil@test:~> du -h test
2.1G test <--------------------- why it is showing 2.1 GB
I could not understand this difference. Could anybody explain this behavioour?
The machine is SLES10 x86_64
Rgds,
Adil