* SIze of a file shows 124 GB while available size is less than 16 GB
@ 2015-01-21 9:07 manty kuma
2015-01-21 9:22 ` anupam.kapoor at gmail.com
0 siblings, 1 reply; 2+ messages in thread
From: manty kuma @ 2015-01-21 9:07 UTC (permalink / raw)
To: kernelnewbies
Hi All,
I am working with bionic c(Android).
There is a file that I generated which is showing 124 GB(ls -l) size.
Whereas the actual available memory on the partition is less than 16 GB.
I am trying to debug but unable to reach any conclusion. What could be the
possible reason? Has someone seen like this before?
Posting it here as I think it has got something to do with linux internals.
I am guessing fseek's offset somewhere has gone wrong. But any directions
would be very helpful.
Regards,
Manty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150121/44072fe4/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* SIze of a file shows 124 GB while available size is less than 16 GB
2015-01-21 9:07 SIze of a file shows 124 GB while available size is less than 16 GB manty kuma
@ 2015-01-21 9:22 ` anupam.kapoor at gmail.com
0 siblings, 0 replies; 2+ messages in thread
From: anupam.kapoor at gmail.com @ 2015-01-21 9:22 UTC (permalink / raw)
To: kernelnewbies
>>>>> [2015-01-21T14:37:39+0530]: "manty kuma" (manty-kuma):
,----[ manty-kuma ]
| There is a file that I generated which is showing 124 GB(ls -l) size.
| Whereas the actual available memory on the partition is less than 16 GB.
`----
sparse file probably, for example, create a 10T file:
,----[ ]
| anupam at fatcat quick-hacks % dd if=/dev/zero of=a-large-sparse-file bs=1024k count=0 seek=10485760
| 0+0 records in
| 0+0 records out
| 0 bytes (0 B) copied, 5.8346e-05 s, 0.0 kB/s
| anupam at fatcat quick-hacks % ls -lh a-large-sparse-file
| -rw-r--r-- 1 anupam users 10T Jan 21 14:49 a-large-sparse-file
| anupam at fatcat quick-hacks %
`----
---
thanks
anupam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-21 9:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-21 9:07 SIze of a file shows 124 GB while available size is less than 16 GB manty kuma
2015-01-21 9:22 ` anupam.kapoor at gmail.com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).