From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: strange "No space left on device"
Date: Mon, 9 Nov 2015 01:51:19 +0000 (UTC) [thread overview]
Message-ID: <pan$cae0f$34bd8945$48460662$225575f1@cox.net> (raw)
In-Reply-To: 1447020657.1068.6.camel@scientia.net
Christoph Anton Mitterer posted on Sun, 08 Nov 2015 23:10:57 +0100 as
excerpted:
> On Sun, 2015-11-08 at 20:39 +0000, Duncan wrote:
>> Wow, yes! Good catch, Henk! =:^) Hugo obviously didn't catch it,
>> and I wouldn't have either, as the bad size detection behavior is so
>> unexpected, it just wouldn't occur to me to look!
> Hmm... all that *may* be more likely an error of myself when copying and
> pasting the terminal output together:
>
> I did actually change the 3rd partition to use 1GiB in later tries at
> the expense of the 5th one shrinking, so the part table would have
> looked like this in these later tries:
> 512M 1G 1G 1G 4G
Oops! =:^(
> Which would again fit the output of the various mkfs.btrfs.
>
> Sorry if that was the case, apologies for any confusion.
>
>
> The problem seemed to went away when explicitly using --mixed.
Good. Whatever the cause of it not doing mixed by default (perhaps it's
an off-by-one error and filesystems of exactly 1 GiB weren't defaulting
to mixed as expected), the fact that mixed was the default on small
filesystems would mean separate data/metadata wouldn't have gotten the
same full testing coverage, so maybe there's a bug... In which case the
4.3 change discussed below would certainly tend to trigger it more often,
hopefully getting it fixed. =:^)
>> (Apparently, btrfs-progs-4.3 does away with the default to mixed- mode
>> at 1 GiB or under, tho it is still recommended.
> Well I still had 4.2 ...
That's why I had that as a parenthetical. It didn't apply to your
current case, but could to others, and I've learned to write with both
the lurkers and the googlers who will happen on my post later, in mind.
>> I'm not exactly sure of why, tho I think it had to do with being able
>> to use sub-GiB btrfs for testing without having to worry about mixed
>> mode.
> Kinda strange... shouldn't it work out of the box for users and not
> developers?
> To be honest, no one should need to read through the wiki, just to be
> able to create a small sized fs.
That's why, tho I didn't press it, I asked for clarification when I saw
it mentioned on the btrfs-progs 4.3-rc1 announcement, verifying that
mixed was still recommended. Chris Murphy (another non-btrfs-dev list
regular, I think he works or volunteers for one of the distros)
questioned it as well, on the same announcement.
But not being able to personally show-them-the-code, as long as there's
at least an option to do it the way I want (which there is, the already
mentioned --mixed option), I've learned not to press it.[1]
> And even if no mixed D/M block group allocation was used... it shouldn't
> just fail out-of-the-box with a few byte large files on a 1 GB fs.
You are absolutely correct. There's a bug somewhere. Earlier I thought
it was the size detection bug Henk spotted, since even if there's some
other bug here it'd pale in comparision, but since that bug turned out to
trace to your copy/paste, that isn't it, and we still have the much more
ordinary level bug to deal with.
But as I said above, with progs 4.3 defaulting to unmixed even on small
filesystems now, if indeed it is tied to unmixed on a small filesystem,
that bug's very likely to get MUCH more common, and thus should be fixed
relatively quickly, I'd guess by the time 4.4 comes out, given the
history of other bugs that turn out to be quite common.
---
[1] Tho for my own systems I sometimes patch in the behavior as I think
it should be, as my patching of existing code skills are dramatically
better than my new-coding skills, and I run gentoo so already build
everything from sources. I finally got tired of the kernel not
defaulting to noatime, and hacked up a patch to do it, so I could remove
noatime from all my fstab entries, for instance. But I already use a
mkfs.btrfs helper script that adds options I prefer, so in this
particular case, simply adding --mixed under appropriate conditions in
the script is a far easier personal solution.
--
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:[~2015-11-09 1:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-07 23:22 strange "No space left on device" Christoph Anton Mitterer
2015-11-07 23:30 ` Hugo Mills
2015-11-08 0:38 ` Christoph Anton Mitterer
2015-11-08 18:18 ` Henk Slager
2015-11-08 20:39 ` Duncan
2015-11-08 22:10 ` Christoph Anton Mitterer
2015-11-09 1:51 ` Duncan [this message]
2015-11-09 11:12 ` Filipe Manana
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$cae0f$34bd8945$48460662$225575f1@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