|
|
1ff636 |
From f1faa24b260222e70d38492e5e3f126700dbd9f8 Mon Sep 17 00:00:00 2001
|
|
|
1ff636 |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
|
1ff636 |
Date: Wed, 4 Mar 2015 16:10:36 +0100
|
|
|
1ff636 |
Subject: [PATCH] Revert "blkid: Warn when rejecting a superblock with a bad
|
|
|
1ff636 |
csum"
|
|
|
1ff636 |
|
|
|
1ff636 |
This reverts commit d47f6ca5f9b7a0b400d8bdb050151a0284fb4bdb.
|
|
|
1ff636 |
---
|
|
|
1ff636 |
README | 2 +-
|
|
|
1ff636 |
configure.ac | 2 +-
|
|
|
1ff636 |
src/udev/udev-builtin-blkid.c | 13 +------------
|
|
|
1ff636 |
3 files changed, 3 insertions(+), 14 deletions(-)
|
|
|
1ff636 |
|
|
|
1ff636 |
diff --git a/README b/README
|
|
Pablo Greco |
48fc63 |
index 287d05c9b4..ac2a81c0cc 100644
|
|
|
1ff636 |
--- a/README
|
|
|
1ff636 |
+++ b/README
|
|
|
1ff636 |
@@ -115,7 +115,7 @@ REQUIREMENTS:
|
|
|
1ff636 |
libcap
|
|
|
1ff636 |
libmount >= 2.20 (from util-linux)
|
|
|
1ff636 |
libseccomp >= 1.0.0 (optional)
|
|
|
1ff636 |
- libblkid >= 2.24 (from util-linux) (optional)
|
|
|
1ff636 |
+ libblkid >= 2.20 (from util-linux) (optional)
|
|
|
1ff636 |
libkmod >= 15 (optional)
|
|
|
1ff636 |
PAM >= 1.1.2 (optional)
|
|
|
1ff636 |
libcryptsetup (optional)
|
|
|
1ff636 |
diff --git a/configure.ac b/configure.ac
|
|
Pablo Greco |
48fc63 |
index f701bcf716..9c25c3c6fc 100644
|
|
|
1ff636 |
--- a/configure.ac
|
|
|
1ff636 |
+++ b/configure.ac
|
|
|
1ff636 |
@@ -437,7 +437,7 @@ AM_CONDITIONAL(HAVE_XKBCOMMON, [test "$have_xkbcommon" = "yes"])
|
|
|
1ff636 |
have_blkid=no
|
|
|
1ff636 |
AC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
|
|
|
1ff636 |
if test "x$enable_blkid" != "xno"; then
|
|
|
1ff636 |
- PKG_CHECK_MODULES(BLKID, [ blkid >= 2.24 ],
|
|
|
1ff636 |
+ PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
|
|
|
1ff636 |
[AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
|
|
|
1ff636 |
if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
|
|
|
1ff636 |
AC_MSG_ERROR([*** blkid support requested but libraries not found])
|
|
|
1ff636 |
diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c
|
|
Pablo Greco |
48fc63 |
index 03e3dc2867..89995831b1 100644
|
|
|
1ff636 |
--- a/src/udev/udev-builtin-blkid.c
|
|
|
1ff636 |
+++ b/src/udev/udev-builtin-blkid.c
|
|
|
1ff636 |
@@ -221,7 +221,6 @@ static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool t
|
|
|
1ff636 |
blkid_probe pr;
|
|
|
1ff636 |
const char *data;
|
|
|
1ff636 |
const char *name;
|
|
|
1ff636 |
- const char *prtype = NULL;
|
|
|
1ff636 |
int nvals;
|
|
|
1ff636 |
int i;
|
|
|
1ff636 |
int err = 0;
|
|
|
1ff636 |
@@ -257,8 +256,7 @@ static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool t
|
|
|
1ff636 |
blkid_probe_set_superblocks_flags(pr,
|
|
|
1ff636 |
BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID |
|
|
|
1ff636 |
BLKID_SUBLKS_TYPE | BLKID_SUBLKS_SECTYPE |
|
|
|
1ff636 |
- BLKID_SUBLKS_USAGE | BLKID_SUBLKS_VERSION |
|
|
|
1ff636 |
- BLKID_SUBLKS_BADCSUM);
|
|
|
1ff636 |
+ BLKID_SUBLKS_USAGE | BLKID_SUBLKS_VERSION);
|
|
|
1ff636 |
|
|
|
1ff636 |
if (noraid)
|
|
|
1ff636 |
blkid_probe_filter_superblocks_usage(pr, BLKID_FLTR_NOTIN, BLKID_USAGE_RAID);
|
|
|
1ff636 |
@@ -280,15 +278,6 @@ static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool t
|
|
|
1ff636 |
err = probe_superblocks(pr);
|
|
|
1ff636 |
if (err < 0)
|
|
|
1ff636 |
goto out;
|
|
|
1ff636 |
- if (blkid_probe_has_value(pr, "SBBADCSUM")) {
|
|
|
1ff636 |
- if (!blkid_probe_lookup_value(pr, "TYPE", &prtype, NULL))
|
|
|
1ff636 |
- log_warning("incorrect %s checksum on %s",
|
|
|
1ff636 |
- prtype, udev_device_get_devnode(dev));
|
|
|
1ff636 |
- else
|
|
|
1ff636 |
- log_warning("incorrect checksum on %s",
|
|
|
1ff636 |
- udev_device_get_devnode(dev));
|
|
|
1ff636 |
- goto out;
|
|
|
1ff636 |
- }
|
|
|
1ff636 |
|
|
|
1ff636 |
/* If we are a partition then our parent passed on the root
|
|
|
1ff636 |
* partition UUID to us */
|