This patch [1] got me looking into the code. I've found couple of issues
which I'm fixing and also I'm introducing couple of new test cases.
1:
https://www.redhat.com/archives/libvir-list/2018-October/msg00513.html
Michal Prívozník (4):
virfiletest: Fix test name prefix for virFileInData test
virfiletst: Test virFileIsSharedFS
virFileIsSharedFSType: Detect direct mount points
virfile: Rework virFileIsSharedFixFUSE
src/util/virfile.c | 66 ++++++---------
tests/Makefile.am | 7 +-
tests/virfiledata/mounts3.txt | 35 ++++++++
tests/virfilemock.c | 154 ++++++++++++++++++++++++++++++++++
tests/virfiletest.c | 64 +++++++++++++-
5 files changed, 284 insertions(+), 42 deletions(-)
create mode 100644 tests/virfiledata/mounts3.txt
create mode 100644 tests/virfilemock.c
--
2.18.0