diff options
author | Karel Zak | 2017-12-07 12:15:34 +0100 |
---|---|---|
committer | Karel Zak | 2017-12-07 12:15:48 +0100 |
commit | b480afcabad0f0d92a7e99259a87f6f98af59fdd (patch) | |
tree | f0faf4ca90ce7660567c02ea3b5bc89327ba4446 /libblkid/src/superblocks | |
parent | libblkid: Add VDO superblock information into blkid (diff) | |
download | kernel-qcow2-util-linux-b480afcabad0f0d92a7e99259a87f6f98af59fdd.tar.gz kernel-qcow2-util-linux-b480afcabad0f0d92a7e99259a87f6f98af59fdd.tar.xz kernel-qcow2-util-linux-b480afcabad0f0d92a7e99259a87f6f98af59fdd.zip |
libblkid: add debug messages when ignore useless devices
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/superblocks')
-rw-r--r-- | libblkid/src/superblocks/superblocks.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libblkid/src/superblocks/superblocks.c b/libblkid/src/superblocks/superblocks.c index 086003969..4387ab9e5 100644 --- a/libblkid/src/superblocks/superblocks.c +++ b/libblkid/src/superblocks/superblocks.c @@ -341,14 +341,18 @@ static int superblocks_probe(blkid_probe pr, struct blkid_chain *chn) blkid_probe_chain_reset_values(pr, chn); - if (pr->flags & BLKID_FL_NOSCAN_DEV) + if (pr->flags & BLKID_FL_NOSCAN_DEV) { + DBG(LOWPROBE, ul_debug("*** ignore (noscan flag)")); return BLKID_PROBE_NONE; + } - if (pr->size <= 0 || (pr->size <= 1024 && !S_ISCHR(pr->mode))) + if (pr->size <= 0 || (pr->size <= 1024 && !S_ISCHR(pr->mode))) { /* Ignore very very small block devices or regular files (e.g. * extended partitions). Note that size of the UBI char devices * is 1 byte */ + DBG(LOWPROBE, ul_debug("*** ignore (size <= 1024)")); return BLKID_PROBE_NONE; + } DBG(LOWPROBE, ul_debug("--> starting probing loop [SUBLKS idx=%d]", chn->idx)); |