guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/05: vm: Disable caching for writable file system mappings.


From: guix-commits
Subject: 03/05: vm: Disable caching for writable file system mappings.
Date: Mon, 31 Aug 2020 09:51:17 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 7eeb78157d3d0267ce4a4ea38ff56a2c4246c11b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Aug 31 14:19:22 2020 +0200

    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.
---
 gnu/system/vm.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 861f2a4..80a8618 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -699,7 +699,8 @@ of the GNU system as described by OS."
        (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)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]