richardphibel / rpms / systemd

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