All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Piotr Pawłow" <pp@siedziba.pl>
To: Paul Jones <paul@pauljones.id.au>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: Cancel device remove?
Date: Thu, 10 Sep 2015 15:18:08 +0200	[thread overview]
Message-ID: <55F18310.9070907@siedziba.pl> (raw)
In-Reply-To: <B7F2379062E32745A8651FBDB20F64596913D2BD@Server.waterlogic.com.au>

Hello,
> Is there some way to cancel a device remove operation? I have discovered that if I reboot that will cancel it, but that's not always possible. What I'm after is something the same as cancelling scrub.
> I keep running into situations where I want to pause a remove operation for speed reasons.

Since removing a device involves shrinking it to 0 size first 
(http://lxr.free-electrons.com/source/fs/btrfs/volumes.c#L1743), I guess 
you could just run "btrfs filesystem resize" in a loop as a workaround, 
shrinking it incrementally, and then remove at the end.


  reply	other threads:[~2015-09-10 13:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10  4:41 Cancel device remove? Paul Jones
2015-09-10 13:18 ` Piotr Pawłow [this message]
2015-09-10 13:47   ` Austin S Hemmelgarn

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=55F18310.9070907@siedziba.pl \
    --to=pp@siedziba.pl \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=paul@pauljones.id.au \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.