mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
vm: Disable caching for writable file system mappings.
Fixes <https://bugs.gnu.org/43062>. Reported by elaexuotee@wilsonb.com. * gnu/system/vm.scm (mapping->file-system)[options]: Disable loose caching when WRITABLE? is true.
This commit is contained in:
parent
83ec969cc7
commit
7eeb78157d
1 changed files with 2 additions and 1 deletions
|
@ -699,7 +699,8 @@ (define (mapping->file-system mapping)
|
||||||
(device (file-system->mount-tag source))
|
(device (file-system->mount-tag source))
|
||||||
(type "9p")
|
(type "9p")
|
||||||
(flags (if writable? '() '(read-only)))
|
(flags (if writable? '() '(read-only)))
|
||||||
(options "trans=virtio,cache=loose")
|
(options (string-append "trans=virtio"
|
||||||
|
(if writable? "" ",cache=loose")))
|
||||||
(check? #f)
|
(check? #f)
|
||||||
(create-mount-point? #t)))))
|
(create-mount-point? #t)))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue