What's new

du vs df /jffs

dineshgyl

Regular Contributor
Why there is space difference between jffs between du and df?

Code:
/tmp/mnt/himani/entware/var/log# du -ak /jffs | sort -nr | head
3116    /jffs
980     /jffs/signature/rule.trf
980     /jffs/signature
848     /jffs/addons
728     /jffs/addons/shared-jy
564     /jffs/scripts
268     /jffs/.sys
264     /jffs/addons/shared-jy/d3.js
212     /jffs/scripts/arp
200     /jffs/scripts/arp/mhttp_arm64


/tmp/mnt/himani/entware/var/log# df -h /jffs
Filesystem                Size      Used Available Use% Mounted on
ubi:jffs2                44.5M      7.0M     35.1M  17% /jffs

I see this used goes upto 20M then reset backs to 3M.
 
On your router /jffs is a UBIFS filesystem. UBIFS is a compressed filesystem where free space is only an estimate. Write caching and garbage collection also have an effect.
 
On your router /jffs is a UBIFS filesystem. UBIFS is a compressed filesystem where free space is only an estimate. Write caching and garbage collection also have an effect.

Not really... bit more complicated, and has nothing to do with ubifs being compressed or not...
 
Perhaps you can further elaborate then - you seem to be on top of this...
I provided a brief explanation of the problem and then linked you to the official documentation (with examples)...

You're the one that said I was wrong, so explain why...
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top