[LTP] [PATCH v4 1/2] tst_device: Add new api tst_find_backing_dev(path, dev)
Jan Stancek
jstancek@redhat.com
Mon Jun 29 09:56:30 CEST 2020
----- Original Message -----
> +This function finds the block dev that this path belongs to, it compares
> path buf
> +with the fifth column of each row in "/proc/self/mountinfo" and list 10th
> column
> +as its block dev.
Why not match major/minor numbers?
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?
More information about the ltp
mailing list