[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/35: vm: Do not mount /xchg with "cache=loose".
From: |
guix-commits |
Subject: |
03/35: vm: Do not mount /xchg with "cache=loose". |
Date: |
Sun, 14 Apr 2019 11:42:22 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 66ec389580d4f1e4b81e1c72afe2749a547a0e7c
Author: Ludovic Courtès <address@hidden>
Date: Sun Apr 14 17:03:34 2019 +0200
vm: Do not mount /xchg with "cache=loose".
Fixes <https://bugs.gnu.org/33639>.
* gnu/system/vm.scm (%linux-vm-file-systems): Remove "cache=loose" for
/xchg.
(system-docker-image): Remove 'sync' call, now unneeded, and which was
probably insufficient.
---
gnu/system/vm.scm | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index db9b170..22e3fcc 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -94,6 +94,12 @@
(define %linux-vm-file-systems
;; File systems mounted for 'derivation-in-linux-vm'. These are shared with
;; the host over 9p.
+ ;;
+ ;; The 9p documentation says that cache=loose is "intended for exclusive,
+ ;; read-only mounts", without additional details. It's much faster than the
+ ;; default cache=none, especially when copying and registering store items.
+ ;; Thus, use cache=loose, except for /xchg where we want to ensure
+ ;; consistency.
(list (file-system
(mount-point (%store-prefix))
(device "store")
@@ -102,18 +108,12 @@
(flags '(read-only))
(options "trans=virtio,cache=loose")
(check? #f))
-
- ;; The 9p documentation says that cache=loose is "intended for
- ;; exclusive, read-only mounts", without additional details. In
- ;; practice it seems to work well for these, and it's much faster than
- ;; the default cache=none, especially when copying and registering
- ;; store items.
(file-system
(mount-point "/xchg")
(device "xchg")
(type "9p")
(needed-for-boot? #t)
- (options "trans=virtio,cache=loose")
+ (options "trans=virtio")
(check? #f))
(file-system
(mount-point "/tmp")
@@ -530,10 +530,7 @@ should set REGISTER-CLOSURES? to #f."
#$os
#:compressor '(#+(file-append gzip "/bin/gzip") "-9n")
#:creation-time (make-time time-utc 0 1)
- #:transformations `((,root-directory -> "")))
-
- ;; Make sure the tarball is fully written before rebooting.
- (sync))))))
+ #:transformations `((,root-directory -> ""))))))))
(expression->derivation-in-linux-vm
name build
#:make-disk-image? #f
- branch master updated (a84510f -> f446f78), guix-commits, 2019/04/14
- 01/35: installer: Add wpa-supplicant along with NetworkManager and Connman., guix-commits, 2019/04/14
- 02/35: tests: separate-store-os: Increase root partition size., guix-commits, 2019/04/14
- 03/35: vm: Do not mount /xchg with "cache=loose".,
guix-commits <=
- 04/35: gnu: Add emacs-undo-propose-el., guix-commits, 2019/04/14
- 10/35: gnu: Add emacs-fish-mode., guix-commits, 2019/04/14
- 09/35: gnu: Add emacs-prettier., guix-commits, 2019/04/14
- 07/35: gnu: Add emacs-flycheck-haskell., guix-commits, 2019/04/14
- 08/35: gnu: Add emacs-js2-refactor-el., guix-commits, 2019/04/14
- 14/35: gnu: Add emacs-vdiff., guix-commits, 2019/04/14
- 18/35: gnu: Add emacs-ert-async., guix-commits, 2019/04/14
- 12/35: gnu: Add emacs-tco-el., guix-commits, 2019/04/14
- 11/35: gnu: Add emacs-eshell-up., guix-commits, 2019/04/14
- 06/35: gnu: Add emacs-vimrc-mode., guix-commits, 2019/04/14