]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Get rid of virFileFlock()
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 29 Jul 2020 10:46:12 +0000 (12:46 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 3 Aug 2020 08:57:47 +0000 (10:57 +0200)
commitc8bb95912e7f375a1600a295af32345abdda151e
tree6d7a0966367f7df86f0cc506b92e04477d70e11e
parentfa44bc8fd074d00d5cc7fe16f31da40487ee2804
util: Get rid of virFileFlock()

It was created to get rid of conditional compilation in the resctrl code and
make it usable anywhere else.  However this is not something that is going to be
used in other places because it is not portable and resctrl is just very
specific in this regard.  And there is no reason why there could not be a
preprocessor conditional in the resctrl code.  Also the interface of
virFileFlock() was very ambiguous which lead to some issues.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/libvirt_private.syms
src/util/virfile.c
src/util/virfile.h
src/util/virresctrl.c