]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Add function to check if a virStorageSource is "empty"
authorPeter Krempa <pkrempa@redhat.com>
Thu, 11 Sep 2014 17:43:53 +0000 (19:43 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 12 Sep 2014 07:37:37 +0000 (09:37 +0200)
commit5e3e9919288511964afb0a7937bd1dcc497b8c17
treec7dc33b0c10d904c2583c38d2f0b28f7d3ba1995
parent3c07693aa2e66705cd44767e6e4dcbd2998639f3
util:  Add function to check if a virStorageSource is "empty"

To express empty drive we historically use storage source with empty
path. Unfortunately NBD disks may be declared without a path.

Add a helper to wrap this logic.
src/libvirt_private.syms
src/util/virstoragefile.c
src/util/virstoragefile.h