From: Theodore Ts'o Date: Mon, 9 Jul 2007 00:17:31 +0000 (-0400) Subject: Add debugging printf to blkid's probe routine when original fs type failed X-Git-Tag: v1.40.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0225face1bd0dddaf19ee8089dc28980a0395633;p=thirdparty%2Fe2fsprogs.git Add debugging printf to blkid's probe routine when original fs type failed 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" --- diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index b5bcdcf6d..69a43b06c 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -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);