mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-09 00:00:04 +03:00
Improve compiler compatibility + run blkid remove for all filesystems
add a blk_wipe function to remove any possible filesystems left on the block device this makes sure the automounter does not accidentally mount it as another filesystem. Signed-off by: Janpieter Sollie <janpieter.sollie@edpnet.be>
This commit is contained in:
parent
2be79b428b
commit
0fbe294a96
@ -289,6 +289,8 @@ int open_for_format(const char *dev, bool force)
|
||||
fputs("Proceed anyway?", stdout);
|
||||
if (!ask_yn())
|
||||
exit(EXIT_FAILURE);
|
||||
while (blkid_do_probe(pr) == 0)
|
||||
blkid_do_wipe(pr, 0);
|
||||
}
|
||||
|
||||
blkid_free_probe(pr);
|
||||
|
Loading…
Reference in New Issue
Block a user