Skip to content

Instantly share code, notes, and snippets.

@mazgi
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazgi/103c87733cc0f23e1588 to your computer and use it in GitHub Desktop.
Save mazgi/103c87733cc0f23e1588 to your computer and use it in GitHub Desktop.
Btrfs is Great!
[root@baseimage] # ls -lh /var/log/zero.txt
-rw-r--r-- 1 root root 54G Jul 25 16:48 /var/log/zero.txt
[root@baseimage] # od -x /var/log/zero.txt
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
655206000000
[root@baseimage] # btrfs fi df /var/log
Data, single: total=5.01GiB, used=3.98GiB
System, DUP: total=8.00MiB, used=16.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, DUP: total=1.00GiB, used=501.73MiB
Metadata, single: total=8.00MiB, used=0.00
[root@baseimage] # mount | grep /var/log
/dev/vda3 on /var/log type btrfs (rw,subvol=var-log,compress=gzip,ssd,discard,space_cache,autodefrag,inode_cache)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment