From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Zefan Subject: Re: [PATCH v2 2/2] Cancel filesystem balance. Date: Fri, 12 Nov 2010 09:33:37 +0800 Message-ID: <4CDC9971.6080903@cn.fujitsu.com> References: <9b18b334410714aba2867f96e949f19243536ddc.1289522188.git.hugo@carfax.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-btrfs@vger.kernel.org, Goffredo Baroncelli , Chris Mason , liubo To: Hugo Mills Return-path: In-Reply-To: <9b18b334410714aba2867f96e949f19243536ddc.1289522188.git.hugo@carfax.org.uk> List-ID: Hugo Mills wrote: > This patch adds an ioctl for cancelling a btrfs balance operation > mid-flight. The ioctl simply sets a flag, and the operation terminates > after the current block group move has completed. > Is there any blocker that prevents us from canceling balance by just Ctrl+C ? > Signed-off-by: Hugo Mills > --- > fs/btrfs/ctree.h | 1 + > fs/btrfs/ioctl.c | 28 ++++++++++++++++++++++++++++ > fs/btrfs/ioctl.h | 3 ++- > fs/btrfs/volumes.c | 7 ++++++- > 4 files changed, 37 insertions(+), 2 deletions(-)