From: "Ludovic Courtès" <ludo@gnu.org>
To: 29765@debbugs.gnu.org
Subject: [bug#29765] [PATCH 1/3] mapped-devices: Add 'location' and 'check' fields.
Date: Mon, 18 Dec 2017 15:17:40 +0100 [thread overview]
Message-ID: <20171218141742.28548-1-ludo@gnu.org> (raw)
In-Reply-To: <20171218141426.28434-1-ludo@gnu.org>
* gnu/system/mapped-devices.scm (<mapped-device>)[location]: New field.
(<mapped-device-type>)[check]: New field.
---
gnu/system/mapped-devices.scm | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/gnu/system/mapped-devices.scm b/gnu/system/mapped-devices.scm
index 17cf6b716..06178ad32 100644
--- a/gnu/system/mapped-devices.scm
+++ b/gnu/system/mapped-devices.scm
@@ -34,11 +34,13 @@
mapped-device-source
mapped-device-target
mapped-device-type
+ mapped-device-location
mapped-device-kind
mapped-device-kind?
mapped-device-kind-open
mapped-device-kind-close
+ mapped-device-kind-check
device-mapping-service-type
device-mapping-service
@@ -58,14 +60,18 @@
mapped-device?
(source mapped-device-source) ;string | list of strings
(target mapped-device-target) ;string
- (type mapped-device-type)) ;<mapped-device-kind>
+ (type mapped-device-type) ;<mapped-device-kind>
+ (location mapped-device-location
+ (default (current-source-location)) (innate)))
(define-record-type* <mapped-device-type> mapped-device-kind
make-mapped-device-kind
mapped-device-kind?
(open mapped-device-kind-open) ;source target -> gexp
(close mapped-device-kind-close ;source target -> gexp
- (default (const #~(const #f)))))
+ (default (const #~(const #f))))
+ (check mapped-device-kind-check ;source -> Boolean
+ (default (const #t))))
\f
;;;
--
2.15.1
next prev parent reply other threads:[~2017-12-18 14:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-18 14:14 [bug#29765] [PATCH 0/3] Check mapped devices upon 'init' and 'reconfigure' Ludovic Courtès
2017-12-18 14:17 ` Ludovic Courtès [this message]
2017-12-18 14:17 ` [bug#29765] [PATCH 2/3] mapped-devices: 'luks-device-mapping' checks its source device Ludovic Courtès
2017-12-18 14:17 ` [bug#29765] [PATCH 3/3] guix system: Check mapped devices upon 'init' and 'reconfigure' Ludovic Courtès
2017-12-22 9:05 ` bug#29765: [PATCH 0/3] " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171218141742.28548-1-ludo@gnu.org \
--to=ludo@gnu.org \
--cc=29765@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.