]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add virFileMakeParentPath helper function
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 30 Jan 2014 17:06:39 +0000 (17:06 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 18 Feb 2014 18:25:46 +0000 (18:25 +0000)
commit613b97051a028105a95b470839572d290c79fb30
treeb51823fe6138072bebcffc264ae391ea0adee6ea
parentc376825b6c81bb1533cc4ce728a4737c6629385b
Add virFileMakeParentPath helper function

Add a helper function which takes a file path and ensures
that all directory components leading up to the file exist.
IOW, it strips the filename part of the path and passes
the result to virFileMakePath.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit c321bfc5c37c603af349dacf531bb03c91b0755e)

Conflicts:
src/libvirt_private.syms,
src/util/virfile.c,
src/util/virfile.h: Moved code to virutil.{c,h}
src/libvirt_private.syms
src/util/virutil.c
src/util/virutil.h