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