diff options
author | Brian C. Lane <bcl@redhat.com> | 2021-07-09 10:54:51 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2021-08-10 16:18:17 -0700 |
commit | 9e194581edf31ddd2474e7be5393578542b4ef8d (patch) | |
tree | 607546aa4b2ca84837c8e9c950e8c0ebf3ed41bf /libparted | |
parent | 33f7bb2f9967856afac2411831ef16dcf95746ab (diff) | |
download | parted-9e194581edf31ddd2474e7be5393578542b4ef8d.tar.gz |
libparted: Tell libdevmapper to retry remove when BUSY
This sets the libdevmapper retry remove flag, which will retry a remove
command if it is BUSY.
parted already has it's own BUSY retry code, but when run with
device-mapper an error can be printed by libdevmapper which can be
confusing to the user.
Resolves: rhbz#1980697
Diffstat (limited to 'libparted')
-rw-r--r-- | libparted/arch/linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c index aacc94f..758d36a 100644 --- a/libparted/arch/linux.c +++ b/libparted/arch/linux.c @@ -2855,6 +2855,7 @@ _dm_remove_partition(PedDisk* disk, int partno) if (!task) goto err; dm_task_set_name (task, part_name); + dm_task_retry_remove(task); if (!dm_task_set_cookie (task, &cookie, 0)) goto err; rc = _dm_task_run_wait (task, cookie); |