diff options
Diffstat (limited to 'libfdisk/src/wipe.c')
-rw-r--r-- | libfdisk/src/wipe.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libfdisk/src/wipe.c b/libfdisk/src/wipe.c index 54f4213..bb5f1bb 100644 --- a/libfdisk/src/wipe.c +++ b/libfdisk/src/wipe.c @@ -75,6 +75,7 @@ int fdisk_set_wipe_area(struct fdisk_context *cxt, free(wp); return 1; } + DBG(WIPE, ul_debug("not requested")); return 0; } @@ -133,17 +134,8 @@ int fdisk_do_wipe(struct fdisk_context *cxt) return rc; } - blkid_probe_enable_superblocks(pr, 1); - blkid_probe_set_superblocks_flags(pr, BLKID_SUBLKS_MAGIC | - BLKID_SUBLKS_BADCSUM); - blkid_probe_enable_partitions(pr, 1); - blkid_probe_set_partitions_flags(pr, BLKID_PARTS_MAGIC | - BLKID_PARTS_FORCE_GPT); - - while (blkid_do_probe(pr) == 0) { - DBG(WIPE, ul_debugobj(wp, " wiping...")); - blkid_do_wipe(pr, FALSE); - } + DBG(WIPE, ul_debugobj(wp, " wiping...")); + blkid_wipe_all(pr); } blkid_free_probe(pr); |