]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Introduce virFileGetExistingParent helper
authorJiri Denemark <jdenemar@redhat.com>
Wed, 28 May 2025 14:36:59 +0000 (16:36 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 2 Jun 2025 08:03:08 +0000 (10:03 +0200)
commit05526b50909ff50c16e13a0b5580d41de74e3d59
treeaec4e0145c8c35cea3284499a0c3b11d9239865b
parentee4231ae67eab1ddb5054cfa39dced5ebd4ce6d4
util: Introduce virFileGetExistingParent helper

The code from virFileIsSharedFSType which finds the longest existing
path for a given input is separated into a new helper so that it can be
reused elsewhere.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virfile.c