diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2022-07-19 19:40:28 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2022-08-10 07:12:25 +0300 |
| commit | 4b494878380920c8c7eecccd1f299164dd4a2c3f (patch) | |
| tree | 04c7bb62fd257570ce6a5fb2a28f2a9b38811139 /gnu/system | |
| parent | 97cb43e732a38758c95b7caf3963507188d011cf (diff) | |
gnu: system: file-systems: Add shared flag.
* gnu/build/file-systems.scm (mount-flags->bit-mask, mount-file-system):
Handle shared flag.
* gnu/system/file-systems.scm (invalid-file-system-flags): Add shared to known
flags.
* guix/build/syscalls.scm (MS_SHARED): New variable.
* doc/guix.texi (File Systems): Document shared flag.
Diffstat (limited to 'gnu/system')
| -rw-r--r-- | gnu/system/file-systems.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm index f8f42762832..464b76a2ca8 100644 --- a/gnu/system/file-systems.scm +++ b/gnu/system/file-systems.scm | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> | 4 | ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> |
| 5 | ;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> | 5 | ;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
| 6 | ;;; Copyright © 2021 Tobias Geerinckx-Rice <me@tobias.gr> | 6 | ;;; Copyright © 2021 Tobias Geerinckx-Rice <me@tobias.gr> |
| 7 | ;;; Copyright © 2022 Oleg Pykhalov <go.wigust@gmail.com> | ||
| 7 | ;;; | 8 | ;;; |
| 8 | ;;; This file is part of GNU Guix. | 9 | ;;; This file is part of GNU Guix. |
| 9 | ;;; | 10 | ;;; |
| @@ -121,7 +122,8 @@ | |||
| 121 | ;; Note: Keep in sync with 'mount-flags->bit-mask'. | 122 | ;; Note: Keep in sync with 'mount-flags->bit-mask'. |
| 122 | (let ((known-flags '(read-only | 123 | (let ((known-flags '(read-only |
| 123 | bind-mount no-suid no-dev no-exec | 124 | bind-mount no-suid no-dev no-exec |
| 124 | no-atime strict-atime lazy-time))) | 125 | no-atime strict-atime lazy-time |
| 126 | shared))) | ||
| 125 | (lambda (flags) | 127 | (lambda (flags) |
| 126 | "Return the subset of FLAGS that is invalid." | 128 | "Return the subset of FLAGS that is invalid." |
| 127 | (remove (cut memq <> known-flags) flags)))) | 129 | (remove (cut memq <> known-flags) flags)))) |
