[libvirt] [PATCH 3/4] virFileIsSharedFSType: Detect direct mount points

Jiri Denemark jdenemar at redhat.com
Wed Oct 10 11:01:09 UTC 2018


On Tue, Oct 09, 2018 at 15:48:46 +0200, Michal Privoznik wrote:
> If the given path is already a mount point (e.g. a bind mount of
> a file, or simply a direct mount point of a FS), then our code
> fails to detect that because the first thing it does is cutting
> off part after last slash '/'.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/util/virfile.c  | 8 ++++----
>  tests/virfiletest.c | 3 +--
>  2 files changed, 5 insertions(+), 6 deletions(-)

Reviewed-by: Jiri Denemark <jdenemar at redhat.com>




More information about the libvir-list mailing list