Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mke2fs: do not warn about a pre-existing partition table when using a non-zero offset
[tools/e2fsprogs.git]
/
lib
/
support
/
plausible.c
diff --git
a/lib/support/plausible.c
b/lib/support/plausible.c
index
2a3ae14
..
bbed2a7
100644
(file)
--- a/
lib/support/plausible.c
+++ b/
lib/support/plausible.c
@@
-282,11
+282,11
@@
int check_plausibility(const char *device, int flags, int *ret_is_dev)
return !has_magic;
}
#endif
-
- ret = check_partition_table(device);
- if (ret >= 0)
- return ret;
-
+ if (flags & CHECK_FS_EXIST) {
+
ret = check_partition_table(device);
+
if (ret >= 0)
+
return ret;
+ }
return 1;
}