From: Kyle Gates <kylegates@gmail.com>
To: Liu Bo <liubo2009@cn.fujitsu.com>
Cc: linux-btrfs@vger.kernel.org, dave@jikos.cz
Subject: Re: balance disables nodatacow
Date: Wed, 1 Aug 2012 22:14:36 -0500 [thread overview]
Message-ID: <CA+M2DjmZO=Tyr+ri78YZPsST=pPar746Fyi4XW0G9-O4FnfSOw@mail.gmail.com> (raw)
In-Reply-To: <501765E4.5080107@cn.fujitsu.com>
On Mon, Jul 30, 2012 at 11:58 PM, Liu Bo <liubo2009@cn.fujitsu.com> wrote:
> On 07/31/2012 12:35 PM, Kyle Gates wrote:
>
>> On Mon, Jul 30, 2012 at 9:00 PM, Liu Bo <liubo2009@cn.fujitsu.com> wrote:
>>> On 07/31/2012 03:55 AM, Kyle Gates wrote:
>>>
>>>> I have a 3 disk raid1 filesystem mounted with nodatacow. I have a
>>>> folder in said filesystem with the 'C' NOCOW & 'Z' Not_Compressed
>>>> flags set for good measure. I then copy in a large file and proceed to
>>>> make random modifications. Filefrag shows no additional extents
>>>> created, good so far. A big thank you to the those devs who got that
>>>> working.
>>>> However, after a balance run (which crashed btw), modifications to the
>>>> file result in increasing extent counts, ie. no longer obeying
>>>> nodatacow mount option nor the 'C' flag.
>>>> I realize that a balance will cow the data but it should not disable
>>>> the ability to make nodatacow inline changes to a file.
>>>>
>>>> I'm currently running 3.5.0 mainline Ubuntu kernel with the latest
>>>> master of btrfs-progs from a ppa.
>>>>
>>>
>>> hmm, I want to know if your 3.5.0 mainline ubuntu kernel has the commit:
>>>
>>> Btrfs: make btrfs's allocation smoothly with preallocation
>>>
>>> This commit may help you out of trouble.
>>> Please let us know the result.
>>>
>>> thanks,
>>> liubo
>>>
>>>> Thank you.
>>>> Kyle Gates
>> I didn't have that commit before but I do now:
>> Linux home 3.5.0-999-generic #201207290405 SMP Sun Jul 29 08:13:26 UTC
>> 2012 i686 athlon i386 GNU/Linux
>>
>> One of my disks is having some issues though. I got this while running a
>> balance which is now hung:
>>
>
>
> oops, I know where goes wrong. I should have noticed it, sorry Kyle.
>
> We've not merged the following patch into mainline:
>
> Btrfs: allow delayed refs to be merged V2
> (link: https://patchwork.kernel.org/patch/1197821/)
>
> So could you please apply the patch and test it again?
>
> thanks,
> liubo
I have yet to try a kernel compile so I'll just wait until that patch
is merged, sorry.
On a related note...
Setting the 'C' NOCOW flag on a file will only be obeyed if the
filesystem is mounted with 'nodatasum'
David sent a patch for the simplest case back on 5/15/2012 but I don't
think it got merged.
A nice enhancement would be when nodatacow is enabled, checksums would
be selectively cleared as data extents are modified.
Thanks,
Kyle
prev parent reply other threads:[~2012-08-02 3:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-30 19:55 balance disables nodatacow Kyle Gates
2012-07-31 2:00 ` Liu Bo
2012-07-31 4:35 ` Kyle Gates
2012-07-31 4:58 ` Liu Bo
2012-08-02 3:14 ` Kyle Gates [this message]
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='CA+M2DjmZO=Tyr+ri78YZPsST=pPar746Fyi4XW0G9-O4FnfSOw@mail.gmail.com' \
--to=kylegates@gmail.com \
--cc=dave@jikos.cz \
--cc=linux-btrfs@vger.kernel.org \
--cc=liubo2009@cn.fujitsu.com \
/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).