The return code (>0) is nowhere in the library used, but let's be
compatible with function comment ;-)
Signed-off-by: Karel Zak <kzak@redhat.com>
/* Don't report collision if there is already a valid partition table.
* The bootbits are wiped when we create a *new* partition table only. */
if (fdisk_is_ptcollision(cxt) && fdisk_has_label(cxt)) {
+ DBG(CXT, ul_debugobj(cxt, "ignore old %s", cxt->collision));
cxt->pt_collision = 0;
free(cxt->collision);
cxt->collision = NULL;
assert(cxt);
assert(cxt->dev_fd >= 0);
- DBG(CXT, ul_debugobj(cxt, "wipe check: initialize libblkid prober"));
+ DBG(WIPE, ul_debugobj(cxt, "wipe check: initialize libblkid prober"));
pr = blkid_new_probe();
if (!pr)
}
blkid_free_probe(pr);
- return rc;
+ return rc < 0 ? rc : cxt->collision ? 1 : 0;
}
#endif