From: Roman Mamedov <rm@romanrm.net>
To: linux-btrfs@vger.kernel.org
Subject: Cancel of "btrfs dev delete" not working
Date: Tue, 6 Jan 2026 00:07:35 +0500 [thread overview]
Message-ID: <20260106000735.4794991b@nvm> (raw)
Hello,
# btrfs dev delete --help
usage: btrfs device delete <device>|<devid> [<device>|<devid>...] <path>
Remove a device from a filesystem (alias of "btrfs device remove")
Remove a device from a filesystem, specified by a path to the device or
as a device id in the filesystem. The btrfs signature is removed from
the device.
If 'missing' is specified for <device>, the first device that is
described by the filesystem metadata, but not present at the mount
time will be removed. (only in degraded mode)
If 'cancel' is specified as the only device to delete, request cancellation
of a previously started device deletion and wait until kernel finishes
any pending work. This will not delete the device and the size will be
restored to previous state. When deletion is not running, this will fail.
--enqueue wait if there's another exclusive operation
running, otherwise continue
# btrfs dev delete cancel /mnt/dir/
Request to cancel running device deletion
ERROR: error removing device 'cancel': Operation canceled
The ongoing deletion is not cancelled and carries on.
# btrfs --version
btrfs-progs v6.14
-EXPERIMENTAL -INJECT -STATIC +LZO +ZSTD +UDEV +FSVERITY +ZONED CRYPTO=builtin
--
With respect,
Roman
reply other threads:[~2026-01-05 19:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260106000735.4794991b@nvm \
--to=rm@romanrm.net \
--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