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:
Ludovic Courtès 2020-08-31 14:19:22 +02:00
parent 83ec969cc7
commit 7eeb78157d
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -699,7 +699,8 @@ (define (mapping->file-system mapping)
(device (file-system->mount-tag source))
(type "9p")
(flags (if writable? '() '(read-only)))
(options "trans=virtio,cache=loose")
(options (string-append "trans=virtio"
(if writable? "" ",cache=loose")))
(check? #f)
(create-mount-point? #t)))))