|
|
5f1a1f |
configure | 20 ++++++++++----------
|
|
|
5f1a1f |
configure.in | 4 ++--
|
|
|
5f1a1f |
lib/device/dev-type.c | 3 +--
|
|
|
4c7ee1 |
3 files changed, 13 insertions(+), 14 deletions(-)
|
|
|
4c7ee1 |
|
|
|
4c7ee1 |
diff --git a/configure b/configure
|
|
|
5f1a1f |
index df902c3..d8319e0 100755
|
|
|
4c7ee1 |
--- a/configure
|
|
|
4c7ee1 |
+++ b/configure
|
|
|
5f1a1f |
@@ -10524,12 +10524,12 @@ if test -n "$BLKID_CFLAGS"; then
|
|
|
4c7ee1 |
pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
|
|
|
4c7ee1 |
elif test -n "$PKG_CONFIG"; then
|
|
|
4c7ee1 |
if test -n "$PKG_CONFIG" && \
|
|
|
4c7ee1 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
|
|
|
4c7ee1 |
- ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
|
|
|
4c7ee1 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.23\""; } >&5
|
|
|
4c7ee1 |
+ ($PKG_CONFIG --exists --print-errors "blkid >= 2.23") 2>&5
|
|
|
4c7ee1 |
ac_status=$?
|
|
|
4c7ee1 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
4c7ee1 |
test $ac_status = 0; }; then
|
|
|
4c7ee1 |
- pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.24" 2>/dev/null`
|
|
|
4c7ee1 |
+ pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.23" 2>/dev/null`
|
|
|
5f1a1f |
test "x$?" != "x0" && pkg_failed=yes
|
|
|
4c7ee1 |
else
|
|
|
4c7ee1 |
pkg_failed=yes
|
|
|
5f1a1f |
@@ -10541,12 +10541,12 @@ if test -n "$BLKID_LIBS"; then
|
|
|
4c7ee1 |
pkg_cv_BLKID_LIBS="$BLKID_LIBS"
|
|
|
4c7ee1 |
elif test -n "$PKG_CONFIG"; then
|
|
|
4c7ee1 |
if test -n "$PKG_CONFIG" && \
|
|
|
4c7ee1 |
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
|
|
|
4c7ee1 |
- ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
|
|
|
4c7ee1 |
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.23\""; } >&5
|
|
|
4c7ee1 |
+ ($PKG_CONFIG --exists --print-errors "blkid >= 2.23") 2>&5
|
|
|
4c7ee1 |
ac_status=$?
|
|
|
4c7ee1 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
4c7ee1 |
test $ac_status = 0; }; then
|
|
|
4c7ee1 |
- pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.24" 2>/dev/null`
|
|
|
4c7ee1 |
+ pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.23" 2>/dev/null`
|
|
|
5f1a1f |
test "x$?" != "x0" && pkg_failed=yes
|
|
|
4c7ee1 |
else
|
|
|
4c7ee1 |
pkg_failed=yes
|
|
|
5f1a1f |
@@ -10567,9 +10567,9 @@ else
|
|
|
4c7ee1 |
_pkg_short_errors_supported=no
|
|
|
4c7ee1 |
fi
|
|
|
4c7ee1 |
if test $_pkg_short_errors_supported = yes; then
|
|
|
5f1a1f |
- BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
|
|
|
5f1a1f |
+ BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.23" 2>&1`
|
|
|
4c7ee1 |
else
|
|
|
5f1a1f |
- BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
|
|
|
5f1a1f |
+ BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.23" 2>&1`
|
|
|
4c7ee1 |
fi
|
|
|
4c7ee1 |
# Put the nasty error message in config.log where it belongs
|
|
|
4c7ee1 |
echo "$BLKID_PKG_ERRORS" >&5
|
|
|
5f1a1f |
@@ -10577,7 +10577,7 @@ fi
|
|
|
5f1a1f |
if test "$BLKID_WIPING" = maybe; then
|
|
|
5f1a1f |
BLKID_WIPING=no
|
|
|
5f1a1f |
else
|
|
|
5f1a1f |
- as_fn_error $? "bailing out... blkid library >= 2.24 is required" "$LINENO" 5
|
|
|
5f1a1f |
+ as_fn_error $? "bailing out... blkid library >= 2.23 is required" "$LINENO" 5
|
|
|
5f1a1f |
fi
|
|
|
4c7ee1 |
elif test $pkg_failed = untried; then
|
|
|
5f1a1f |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
5f1a1f |
@@ -10585,7 +10585,7 @@ $as_echo "no" >&6; }
|
|
|
5f1a1f |
if test "$BLKID_WIPING" = maybe; then
|
|
|
5f1a1f |
BLKID_WIPING=no
|
|
|
5f1a1f |
else
|
|
|
5f1a1f |
- as_fn_error $? "bailing out... blkid library >= 2.24 is required" "$LINENO" 5
|
|
|
5f1a1f |
+ as_fn_error $? "bailing out... blkid library >= 2.23 is required" "$LINENO" 5
|
|
|
5f1a1f |
fi
|
|
|
4c7ee1 |
else
|
|
|
5f1a1f |
BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
|
|
|
4c7ee1 |
diff --git a/configure.in b/configure.in
|
|
|
5f1a1f |
index 5b22b93..2c3fcba 100644
|
|
|
4c7ee1 |
--- a/configure.in
|
|
|
4c7ee1 |
+++ b/configure.in
|
|
|
5f1a1f |
@@ -1077,12 +1077,12 @@ AC_MSG_RESULT($BLKID_WIPING)
|
|
|
5f1a1f |
|
|
|
5f1a1f |
if test "$BLKID_WIPING" != no; then
|
|
|
5f1a1f |
pkg_config_init
|
|
|
4c7ee1 |
- PKG_CHECK_MODULES(BLKID, blkid >= 2.24,
|
|
|
4c7ee1 |
+ PKG_CHECK_MODULES(BLKID, blkid >= 2.23,
|
|
|
5f1a1f |
[test "$BLKID_WIPING" = maybe && BLKID_WIPING=yes],
|
|
|
5f1a1f |
[if test "$BLKID_WIPING" = maybe; then
|
|
|
5f1a1f |
BLKID_WIPING=no
|
|
|
5f1a1f |
else
|
|
|
5f1a1f |
- AC_MSG_ERROR([bailing out... blkid library >= 2.24 is required])
|
|
|
5f1a1f |
+ AC_MSG_ERROR([bailing out... blkid library >= 2.23 is required])
|
|
|
5f1a1f |
fi])
|
|
|
5f1a1f |
if test "$BLKID_WIPING" = yes; then
|
|
|
5f1a1f |
BLKID_PC="blkid"
|
|
|
4c7ee1 |
diff --git a/lib/device/dev-type.c b/lib/device/dev-type.c
|
|
|
5f1a1f |
index 001248d..03752a5 100644
|
|
|
4c7ee1 |
--- a/lib/device/dev-type.c
|
|
|
4c7ee1 |
+++ b/lib/device/dev-type.c
|
|
|
5f1a1f |
@@ -548,8 +548,7 @@ static int _wipe_known_signatures_with_blkid(struct device *dev, const char *nam
|
|
|
4c7ee1 |
BLKID_SUBLKS_TYPE |
|
|
|
4c7ee1 |
BLKID_SUBLKS_USAGE |
|
|
|
4c7ee1 |
BLKID_SUBLKS_VERSION |
|
|
|
4c7ee1 |
- BLKID_SUBLKS_MAGIC |
|
|
|
4c7ee1 |
- BLKID_SUBLKS_BADCSUM);
|
|
|
4c7ee1 |
+ BLKID_SUBLKS_MAGIC);
|
|
|
4c7ee1 |
|
|
|
4c7ee1 |
while (!blkid_do_probe(probe)) {
|
|
|
4c7ee1 |
found++;
|