Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* nocow and compression
@ 2014-10-27 12:56 Marc Dietrich
  2014-10-27 12:59 ` Swâmi Petaramesh
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Dietrich @ 2014-10-27 12:56 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I created a filesystem and mounted it with compress-force=lzo. Then I did:

# df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/loop0      100M  4.1M   96M   5% /mnt

# yes "Hello World" | dd of=/mnt/test iflag=fullblock bs=1M count=20 
status=none
yes: standard output: Broken pipe
yes: write error

# sync; ls -l ; df -h .
total 20480
-rw-r--r-- 1 root root 20971520 Oct 27 13:48 test
Filesystem      Size  Used Avail Use% Mounted on
/dev/loop0      100M  4.7M   96M   5% /mnt

so far so good ...

# touch test2; chattr +C test2
# dd if=test of=test2 conv=notrunc bs=1M iflag=fullblock oflag=append 
status=none
# sync; ls -l ; df -h .
total 40960
-rw-r--r-- 1 root root 20971520 Oct 27 13:51 test
-rw-r--r-- 1 root root 20971520 Oct 27 13:51 test2
Filesystem      Size  Used Avail Use% Mounted on
/dev/loop0      100M   25M   76M  25% /mnt

oops, no compression.

Is this intended?

Marc


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-27 13:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-27 12:56 nocow and compression Marc Dietrich
2014-10-27 12:59 ` Swâmi Petaramesh
2014-10-27 13:06   ` Marc Dietrich
2014-10-27 13:10     ` Swâmi Petaramesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox