Some tests were failing for me like:
QA output created by 206
=== truncate file ===
=== mkfs.xfs ===
+warning: unable to probe device toplology for device /mnt/test/fsfile.21615
...
I thought about filtering the tests, but ...
It seems that we shouldn't even be trying to get topology for a
plain file, should we? And then we won't warn about failure.
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
blkid_topology tp;
blkid_probe pr;
unsigned long val;
+ struct stat statbuf;
+
+ /* can't get topology info from a file */
+ if (!stat(device, &statbuf) && S_ISREG(statbuf.st_mode))
+ return;
pr = blkid_new_probe_from_filename(device);
if (!pr)