summaryrefslogtreecommitdiff
path: root/libblkid/src/probe.c
diff options
context:
space:
mode:
Diffstat (limited to 'libblkid/src/probe.c')
-rw-r--r--libblkid/src/probe.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c
index 4b0c9979..e20c61bb 100644
--- a/libblkid/src/probe.c
+++ b/libblkid/src/probe.c
@@ -934,7 +934,8 @@ int blkid_do_probe(blkid_probe pr)
*
* This function erases the current signature detected by @pr. The @pr has to
* be open in O_RDWR mode, BLKID_SUBLKS_MAGIC or/and BLKID_PARTS_MAGIC flags
- * has to be enabled.
+ * has to be enabled (if you want to errase also superblock with broken check
+ * sums then use BLKID_SUBLKS_BADCSUM too).
*
* After successful signature removing the @pr prober will be moved one step
* back and the next blkid_do_probe() call will again call previously called
@@ -1135,8 +1136,6 @@ int blkid_do_safeprobe(blkid_probe pr)
blkid_probe_start(pr);
- pr->prob_flags |= BLKID_PROBE_FL_IGNORE_BACKUP;
-
for (i = 0; i < BLKID_NCHAINS; i++) {
struct blkid_chain *chn;
@@ -1809,8 +1808,3 @@ void blkid_probe_use_wiper(blkid_probe pr, blkid_loff_t off, blkid_loff_t size)
blkid_probe_chain_reset_vals(pr, chn);
}
}
-
-int blkid_probe_ignore_backup(blkid_probe pr)
-{
- return pr && (pr->prob_flags & BLKID_PROBE_FL_IGNORE_BACKUP);
-}