Whamcloud - gitweb
mke2fs: do not warn about a pre-existing partition table when using a non-zero offset
authorTheodore Ts'o <tytso@mit.edu>
Wed, 21 Jul 2021 19:46:09 +0000 (15:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 Jul 2021 20:24:15 +0000 (16:24 -0400)
commit942b00cb9d2f2b52f4c58877d523145ee59a89b0
treebdfd7a686b5af5764e69be461f2fee1c45e0d01f
parent6568ba325e54a2ae1d2617c5175936c819ab4c8c
mke2fs: do not warn about a pre-existing partition table when using a non-zero offset

The existing code attempted to avoid warning about a pre-existing file
system with a non-zero offset, but because the offset was not set at
the time of the check, this intention was not actually working.  So
this commit will suppress warnings about pre-existing a partition
table as well as pre-existing file system when there is a non-zero
offset.

Addresses-Debian-Bug: #989612
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/plausible.c
misc/mke2fs.c