Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Marc Dietrich <marvin24@gmx.de>
To: linux-btrfs@vger.kernel.org
Subject: nocow and compression
Date: Mon, 27 Oct 2014 13:56:07 +0100	[thread overview]
Message-ID: <2033879.2EPALEPetI@fb07-iapwap2> (raw)

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


             reply	other threads:[~2014-10-27 12:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-27 12:56 Marc Dietrich [this message]
2014-10-27 12:59 ` nocow and compression Swâmi Petaramesh
2014-10-27 13:06   ` Marc Dietrich
2014-10-27 13:10     ` Swâmi Petaramesh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2033879.2EPALEPetI@fb07-iapwap2 \
    --to=marvin24@gmx.de \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox