summaryrefslogtreecommitdiffstats
path: root/misc-utils/wipefs.c
diff options
context:
space:
mode:
authorKarel Zak2014-03-18 11:22:39 +0100
committerKarel Zak2014-04-03 12:29:16 +0200
commit1577b2592e2e31e52ed5d8cbed8fe90868891f8f (patch)
treeec98e5ad79f91624a7c714fc86be60b72bf08ac4 /misc-utils/wipefs.c
parentlibsmartcols: add cells (diff)
downloadkernel-qcow2-util-linux-1577b2592e2e31e52ed5d8cbed8fe90868891f8f.tar.gz
kernel-qcow2-util-linux-1577b2592e2e31e52ed5d8cbed8fe90868891f8f.tar.xz
kernel-qcow2-util-linux-1577b2592e2e31e52ed5d8cbed8fe90868891f8f.zip
libsmartcols: add columns
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/wipefs.c')
-rw-r--r--misc-utils/wipefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/wipefs.c b/misc-utils/wipefs.c
index 932acdfa7..5dfaf0c55 100644
--- a/misc-utils/wipefs.c
+++ b/misc-utils/wipefs.c
@@ -421,7 +421,7 @@ do_wipe(struct wipe_desc *wp, const char *devname, int flags)
fsync(blkid_probe_get_fd(pr));
- if (reread)
+ if (reread && (mode & O_EXCL))
rereadpt(blkid_probe_get_fd(pr), devname);
close(blkid_probe_get_fd(pr));