[libvirt PATCH v2 23/56] src: stop using O_DIRECTORY in resctrl

Pavel Hrdina phrdina at redhat.com
Tue Jan 28 16:45:10 UTC 2020


On Tue, Jan 28, 2020 at 01:11:04PM +0000, Daniel P. Berrangé wrote:
> The O_DIRECTORY flag causes open() to return an error
> if the filename is a directory. There's no obvious
> reason why resctrl needs to use this, while the rest of
> libvirt code does not. Removing it avoids build issues
> on platforms where O_DIRECTORY is not defined, once we
> remove GNULIB.
> 
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
>  src/util/virresctrl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200128/001823f6/attachment-0001.sig>


More information about the libvir-list mailing list