From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: empty disk reports full
Date: Wed, 27 Apr 2016 11:03:42 +0000 (UTC) [thread overview]
Message-ID: <pan$3f1aa$2c4fda9$62d32937$323cb4c7@cox.net> (raw)
In-Reply-To: 17848457.cMlg96Ju9J@anv.localdomain
Alejandro Vargas posted on Wed, 27 Apr 2016 11:29:31 +0200 as excerpted:
>> Also there are two compress mount options that conflict with each
>> other, is this intentional?
>
> I did not thought that compress and compress-force are incompatible...
> The intention is to force it to compress the data for using lower disk
> space. Compress-force should be enough?
Yes. Compress-force simply forces the compression instead of quick-
testing whether the file seems easily/effectively compressed first (tho I
think it still tests compressed block size and stores it uncompressed if
the "compressed" block is actually larger, I don't believe it forces
"compression" in /that/ case). It will result in better compression when
the first 4k (I believe that's what the quick-test tests on) of a file
doesn't compress well but much of the rest will.
The problem with having both compress and compress-force in mount options
is that I believe it's order-dependent which one ends up being applied,
and unless you're a mount options guru, remembering whether it's the
first or the last one that gets applied, or a special case where one
overrules the other, is hard. So it's best just to use just the option
you want and not confuse people, at least others trying to make sense of
things even if you yourself know which one gets applied, with both.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2016-04-27 11:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-01 9:50 empty disk reports full Alejandro Vargas
2016-04-01 10:05 ` Hugo Mills
2016-04-25 14:03 ` Alejandro Vargas
2016-04-26 6:08 ` Chris Murphy
2016-04-27 9:29 ` Alejandro Vargas
2016-04-27 11:03 ` Duncan [this message]
2016-05-09 10:56 ` Alejandro Vargas
2016-05-09 21:51 ` Chris Murphy
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='pan$3f1aa$2c4fda9$62d32937$323cb4c7@cox.net' \
--to=1i5t5.duncan@cox.net \
--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;
as well as URLs for NNTP newsgroup(s).