Whamcloud - gitweb
Add debugging printf to blkid's probe routine when original fs type failed
authorTheodore Ts'o <tytso@mit.edu>
Mon, 9 Jul 2007 00:17:31 +0000 (20:17 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Jul 2007 00:17:31 +0000 (20:17 -0400)
This particular bit of code has caused problems before, so make it
easier to debug problems caused by the probe verification looping
forever here.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/blkid/probe.c

index b5bcdcf..69a43b0 100644 (file)
@@ -999,6 +999,9 @@ try_again:
                /*
                 * Zap the device filesystem information and try again
                 */
+               DBG(DEBUG_PROBE,
+                   printf("previous fs type %s not valid, "
+                          "trying full probe\n", dev->bid_type));
                iter = blkid_tag_iterate_begin(dev);
                while (blkid_tag_next(iter, &type, &value) == 0)
                        blkid_set_tag(dev, type, 0, 0);