]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add helpers to handle stat data for qemuStorageLimitsRefresh
authorJohn Ferlan <jferlan@redhat.com>
Thu, 1 Dec 2016 16:10:06 +0000 (11:10 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 12 Dec 2016 21:04:17 +0000 (16:04 -0500)
commit732af77cce447999731a70b30bca98da44accc5d
tree3e3253d655e8d6f3be6382333068b3d90c1cb835
parent7149d1693d4f883ba2803d05dddb0c5935b007d2
qemu: Add helpers to handle stat data for qemuStorageLimitsRefresh

Split out the opening of the file and fetch of the stat buffer into a
helper qemuDomainStorageOpenStat. This will handle either opening the
local or remote storage.

Additionally split out the cleanup of that into a separate helper
qemuDomainStorageCloseStat which will either close the file or
call the virStorageFileDeinit function.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_driver.c