1# Copyright (c) 2025 Antmicro <www.antmicro.com>
2# SPDX-License-Identifier: Apache-2.0
3
4config FILE_SYSTEM_VIRTIOFS
5	bool "Virtiofs file system support"
6	depends on FILE_SYSTEM
7	select FUSE_CLIENT
8	help
9	  Enable virtiofs file system support.
10
11config VIRTIOFS_DEBUG
12	bool "Print virtiofs verbose debug information"
13	help
14	  Enables printing of virtiofs verbose debug information
15
16config VIRTIOFS_MAX_FILES
17	int "Virtiofs max open files"
18	default 1024
19	help
20	  Virtiofs max simultaneously open files
21
22config VIRTIOFS_MAX_VQUEUE_SIZE
23	int "Virtiofs max virtqueue size"
24	default 1024
25	help
26	  Maximum size of virtqueue
27
28config VIRTIOFS_NO_NOTIFICATION_QUEUE_SLOT
29	bool "Omit notification queue (idx 1) and assume that idx 1 is the first request queue"
30	default y
31	help
32	  According to virtio specification v1.3 section 5.11.2 queue at idx 1 is notification queue and
33	  request queues start at idx 2, however on qemu+virtiofsd thats not true and idx 1 is
34	  the first request queue
35
36config VIRTIOFS_VIRTIOFSD_UNLINK_QUIRK
37	bool "Fix unlink() with some virtiofsd versions"
38	default y
39	help
40	  Some virtiofsd versions (at least Debian 1:7.2+dfsg-7+deb12u7)
41	  will fail with EIO on unlink if the file wasn't looked up before
42
43config VIRTIOFS_CREATE_MODE_VALUE
44	int "Virtiofs mode value used during file/directory creation"
45	default 438 #0666
46	help
47	  During creation of file or directory we have to set mode, this config allows
48	  configuring that value. This determines access permissions for created files and directories.
49
50module = VIRTIOFS
51module-str = virtiofs
52source "subsys/logging/Kconfig.template.log_config"
53