Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6EB4C2BA19 for ; Sun, 12 Apr 2020 02:50:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B79F120857 for ; Sun, 12 Apr 2020 02:50:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726829AbgDLCuA convert rfc822-to-8bit (ORCPT ); Sat, 11 Apr 2020 22:50:00 -0400 Received: from james.kirk.hungrycats.org ([174.142.39.145]:44086 "EHLO james.kirk.hungrycats.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726108AbgDLCt7 (ORCPT ); Sat, 11 Apr 2020 22:49:59 -0400 Received: by james.kirk.hungrycats.org (Postfix, from userid 1002) id 370B6665A83; Sat, 11 Apr 2020 22:49:54 -0400 (EDT) Date: Sat, 11 Apr 2020 22:49:54 -0400 From: Zygo Blaxell To: Oliver Cc: linux-btrfs@vger.kernel.org Subject: Re: cancel resize Message-ID: <20200412024954.GQ13306@hungrycats.org> References: <1c779cba-5d1c-0bca-38bf-af5cd572a9d0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <1c779cba-5d1c-0bca-38bf-af5cd572a9d0@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Sun, Apr 12, 2020 at 01:52:01AM +0200, Oliver wrote: > Hello, > > I've made a stupid mistake. I wanted to reduce a disk with 1990m, but > instead resized it to 1990m. > > btrfs fi resize 2:1990m /btrfs > > It will take forever and might fail in the end, as I might not have enough > space avaiable. > > How do I cancel this operation ? I can see cancel operations for other > commands, but not this one. Currently, the only ways to stop a device shrink or remove are to run out of space or reboot. Patches welcome! > thanks, > Oliver