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

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to