[lvm-devel] [PATCH] vgimportdevices: LOCK_EX requires <sys/file.h> include

Zdenek Kabelac zkabelac at redhat.com
Wed Feb 8 13:06:49 UTC 2023


Dne 07. 02. 23 v 14:27 David Seifert napsal(a):
> From: Jory Pratt <anarchy at gentoo.org>
> 
> https://linux.die.net/man/2/flock
> 
> Bug: https://bugs.gentoo.org/887259
> ---
>   tools/vgimportdevices.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/tools/vgimportdevices.c b/tools/vgimportdevices.c
> index ab359d31c..d8260c731 100644
> --- a/tools/vgimportdevices.c
> +++ b/tools/vgimportdevices.c
> @@ -15,6 +15,7 @@
>   #include "tools.h"
>   #include "lib/cache/lvmcache.h"
>   #include "lib/device/device_id.h"
> +#include <sys/file.h>
>   
>   struct vgimportdevices_params {
>   	uint32_t added_devices;

Hi & thanks

I'll apply

Regards

Zdenek


More information about the lvm-devel mailing list