diff mbox series

[v5,13/16] fsdev: Disable proxy fs driver on Windows

Message ID 20230220100815.1624266-14-bin.meng@windriver.com
State New
Headers show
Series hw/9pfs: Add 9pfs support for Windows | expand

Commit Message

Bin Meng Feb. 20, 2023, 10:08 a.m. UTC
From: Guohuai Shi <guohuai.shi@windriver.com>

We don't plan to support 'proxy' file system driver for 9pfs on
Windows. Disable it for Windows build.

Signed-off-by: Guohuai Shi <guohuai.shi@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
---

 fsdev/qemu-fsdev.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Philippe Mathieu-Daudé March 6, 2023, 9:28 a.m. UTC | #1
On 20/2/23 11:08, Bin Meng wrote:
> From: Guohuai Shi <guohuai.shi@windriver.com>
> 
> We don't plan to support 'proxy' file system driver for 9pfs on
> Windows. Disable it for Windows build.
> 
> Signed-off-by: Guohuai Shi <guohuai.shi@windriver.com>
> Signed-off-by: Bin Meng <bin.meng@windriver.com>
> ---
> 
>   fsdev/qemu-fsdev.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c
> index 3da64e9f72..58e0710fbb 100644
> --- a/fsdev/qemu-fsdev.c
> +++ b/fsdev/qemu-fsdev.c
> @@ -89,6 +89,7 @@ static FsDriverTable FsDrivers[] = {
>               NULL
>           },
>       },
> +#ifndef CONFIG_WIN32
>       {
>           .name = "proxy",
>           .ops = &proxy_ops,
> @@ -100,6 +101,7 @@ static FsDriverTable FsDrivers[] = {
>               NULL
>           },
>       },
> +#endif
>   };

Probably the meson changes moving '9p-proxy.c' in hw/9pfs/meson.build
(patch 16) belong here.
diff mbox series

Patch

diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c
index 3da64e9f72..58e0710fbb 100644
--- a/fsdev/qemu-fsdev.c
+++ b/fsdev/qemu-fsdev.c
@@ -89,6 +89,7 @@  static FsDriverTable FsDrivers[] = {
             NULL
         },
     },
+#ifndef CONFIG_WIN32
     {
         .name = "proxy",
         .ops = &proxy_ops,
@@ -100,6 +101,7 @@  static FsDriverTable FsDrivers[] = {
             NULL
         },
     },
+#endif
 };
 
 static int validate_opt(void *opaque, const char *name, const char *value,