improve wipe_disk/delete_partitions

Description

The code that "wipes" a disk is wildy inefficient and we also found it's prone to race conditions. ()

Issues I've found.
1. we're opening the underlying disk multiple times for a single "wipe" operation
2. we're dd'ing the first 32MB and last 32MB of the disk as well as gpart destroy/gpart create and another gpart destroy (The gparts are not needed since the dd is plenty sufficient enough to do it)
3. we're subprocessing out to run these commands multiple times in a single method

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk October 5, 2021 at 5:42 PM
Edited

bug clerk backport weirdness

Bug Clerk October 5, 2021 at 5:41 PM
Edited

bug clerk backport weirdness

Bug Clerk August 3, 2021 at 9:19 PM

Bug Clerk July 30, 2021 at 8:07 PM

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Affects versions

Priority

Katalon Platform

Created July 29, 2021 at 7:09 PM
Updated July 1, 2022 at 5:29 PM
Resolved October 5, 2021 at 9:41 PM