[LTP] [PATCH v4 1/2] tst_device: Add new api tst_find_backing_dev(path, dev)

Jan Stancek jstancek@redhat.com
Mon Jun 29 13:08:14 CEST 2020


> > You said "But stat function has problem when filsystem uses virtual block
> > (such as btrfs,fuse, then major numer is 0)." - Why is that a problem
> > for comparison against /proc/self/mountinfo?
> > 
> Yes, you are right. I wrongly think btrfs filesystem affects the 10th
> columu value in /proc/self/mountinfo. In actually, it can show the
> correct backing block dev.

I haven't tested your pasted version, but that approach seems better,
since that should work for any path, not just the mount point.



More information about the ltp mailing list