[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT/LWIP PATCH 1/2] sockets.c: Set stub for .vop_getattr operation


  • To: Costin Lupu <costin.lupu@xxxxxxxxx>, "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Mon, 16 Sep 2019 13:17:01 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tzU0VStnf95ahs/CFivr9GKaxqwCBllLu33zLG4o2N4=; b=iUWOZ5K3v+itkvWhPYl7GyWjT9lXBjwaN283Ytw7RGheV/ub9idUXRU9GO5MOP+8cPqmSk8+L50SRdwidI+avqn+GaZz7rcIZEcKzArCsCxqsjPwo0SB4SoatCEnFzfbv3SjgwlWqQ44t6UuhGqrpV3rK+h6fS51rAH6H6Qdz6oNVTVCuqg1RtBLKCajaQ+QtfPKK/xdEfhpRgz3ZoDq5aFVQG7NmPNroiSmp5BiQdUFJF1znsEfsqUImo3x19lKr0QhzIgITKWwxRBLSyrBowzgrm7KCjFSeRmyFZ2MVEQYPP5DTWvRH9tU+a+LL4l9IBPptrdE1D3L4ENp7vWxjA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z1nePf6Sg6l5+Ty6LhOaPbGiPj7273JulqDrr1XSLdOCx9O48XanaJ8s52ax76smmjAYgSbay3q2He3XPqRvELPDXtz5bY4DmS91hGgWwVSenTUflYBxqE12bLQn3ayIvA0pEAy4Md2rGdxM2ALNCWxeow0r6MAnNaNQ5hGF/LLFBK0qrO1tXNVN+YhpeTRq++ZDXOGwJ6FTeG/LADRg37JqcVc71tURX5ARFLDApEqXkRU1RYeKksLnPTjWTRuvLY5bTX6hIoMuKE8F03Lfko3wllkpIAZOXAiuNlwvCk9hSlw6AmcNtTc2S++4vbPE4F7V5jFcn9ewCubkMXm5Qg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>
  • Delivery-date: Mon, 16 Sep 2019 13:17:08 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVaUiAWH8hQfEleU2ZMjM5TK3cNacuT3oA
  • Thread-topic: [UNIKRAFT/LWIP PATCH 1/2] sockets.c: Set stub for .vop_getattr operation

Hi Costin,

Thanks!

Vlad

Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>

On 12.09.2019 12:00, Costin Lupu wrote:
> We currently just set a stub for .vop_getattr operation in order to avoid
> crashes. And since we are here, this patch also disables the 
> cast-function-type
> warnings which annoyingly apear for each source file that sets some filesystem
> callbacks.
>
> Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
> ---
>   Makefile.uk | 1 +
>   sockets.c   | 2 ++
>   2 files changed, 3 insertions(+)
>
> diff --git a/Makefile.uk b/Makefile.uk
> index 2292cb4..0e72336 100644
> --- a/Makefile.uk
> +++ b/Makefile.uk
> @@ -85,6 +85,7 @@ LIBLWIP_SRCS-$(CONFIG_LWIP_THREADS) += 
> $(LIBLWIP_BASE)/threads.c|unikraft
>   LIBLWIP_SRCS-y += $(LIBLWIP_BASE)/init.c|unikraft
>   LIBLWIP_SRCS-y += $(LIBLWIP_BASE)/time.c|unikraft
>   LIBLWIP_SRCS-$(CONFIG_LWIP_SOCKET) += $(LIBLWIP_BASE)/sockets.c|unikraft
> +LIBLWIP_SOCKETS_FLAGS-y += -Wno-cast-function-type
>   LIBLWIP_SRCS-$(CONFIG_LWIP_SOCKET) += $(LIBLWIP_BASE)/getnameinfo.c|unikraft
>   LIBLWIP_SRCS-y += $(LIBLWIP_EXTRACTED)/core/init.c
>   LIBLWIP_SRCS-y += $(LIBLWIP_EXTRACTED)/core/def.c
> diff --git a/sockets.c b/sockets.c
> index f4f7d40..cd84b97 100644
> --- a/sockets.c
> +++ b/sockets.c
> @@ -62,6 +62,7 @@ static int sock_net_ioctl(struct vnode *s_vnode,
>                       unsigned long request,
>                       void *buf);
>   
> +#define sock_net_getattr   ((vnop_getattr_t) vfscore_vop_einval)
>   #define sock_net_inactive  ((vnop_inactive_t) vfscore_vop_nullop)
>   
>   static struct vnops sock_net_vnops = {
> @@ -69,6 +70,7 @@ static struct vnops sock_net_vnops = {
>       .vop_write = sock_net_write,
>       .vop_read  = sock_net_read,
>       .vop_ioctl = sock_net_ioctl,
> +     .vop_getattr = sock_net_getattr,
>       .vop_inactive = sock_net_inactive
>   };
>   
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.