Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Liu Bo <bo.li.liu@oracle.com>
To: "Wang, Zhiye" <Zhiye.Wang@Arcserve.com>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: freeze_bdev and scrub/re-balance
Date: Wed, 9 Dec 2015 09:21:43 -0800	[thread overview]
Message-ID: <20151209172143.GA30753@localhost.localdomain> (raw)
In-Reply-To: <CY1PR10MB0428E36B7C37C92740306A60E40B0@CY1PR10MB0428.namprd10.prod.outlook.com>

On Sat, Dec 05, 2015 at 09:57:18AM +0000, Wang, Zhiye wrote:
> Hi all,
> 
> 
> If I understand it correctly, defragment operation is done in user space tools, while scrub/re-balance is done in kernel thread.

Defragment is done via a IOCTL, so it also works in the kernel.

> 
> 
> So, if my kernel module calls freeze_bdev when scrub/re-balance is in progress, will I still be able to get a consistent file system state?

It should be like that with COW enabled.

Thanks,

-liubo

  parent reply	other threads:[~2015-12-09 17:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CY1PR10MB0428B98E759584F476DB4CF3E40B0@CY1PR10MB0428.namprd10.prod.outlook.com>
2015-12-05  9:57 ` freeze_bdev and scrub/re-balance Wang, Zhiye
2015-12-09 11:01   ` Wang, Zhiye
2015-12-09 17:21   ` Liu Bo [this message]
2015-12-14  9:27     ` Wang, Zhiye
2016-01-07 22:14       ` Liu Bo
2016-01-08  3:13         ` Wang, Zhiye

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=20151209172143.GA30753@localhost.localdomain \
    --to=bo.li.liu@oracle.com \
    --cc=Zhiye.Wang@Arcserve.com \
    --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