File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 283
283
--rlimit-nofile ${ toString serviceConfig . LimitNOFILE } \
284
284
--thread-pool-size `nproc` \
285
285
--posix-acl --xattr \
286
+ ${ lib . optionalString ( config . microvm . virtiofsd . inodeFileHandles != null )
287
+ "--inode-file-handles=${ config . microvm . virtiofsd . inodeFileHandles } "
288
+ } \
286
289
&
287
290
# detach from shell, but remain in systemd cgroup
288
291
disown
Original file line number Diff line number Diff line change 137
137
This includes declarative `config.microvm.vms` as well as MicroVMs that are managed through the `microvm` command.
138
138
'' ;
139
139
} ;
140
+
141
+ virtiofsd . inodeFileHandles = mkOption {
142
+ type = with types ; nullOr ( enum [
143
+ "never" "prefer" "mandatory"
144
+ ] ) ;
145
+ default = null ;
146
+ description = ''
147
+ When to use file handles to reference inodes instead of O_PATH file descriptors
148
+ (never, prefer, mandatory)
149
+
150
+ Allows you to overwrite default behavior in case you hit "too
151
+ many open files" on eg. ZFS.
152
+ <https://gitlab.com/virtio-fs/virtiofsd/-/issues/121>
153
+ '' ;
154
+ } ;
140
155
} ;
141
156
}
You can’t perform that action at this time.
0 commit comments