From: Marius Bakke <marius@gnu.org>
To: 58924@debbugs.gnu.org
Subject: [bug#58924] [PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'.
Date: Mon, 31 Oct 2022 11:27:21 +0100 [thread overview]
Message-ID: <20221031102721.20065-1-marius@gnu.org> (raw)
* gnu/build/file-systems.scm (ENOENT-safe): Catch EMEDIUMTYPE and warn.
---
gnu/build/file-systems.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm
index 0d7ff99f17..15b8f73312 100644
--- a/gnu/build/file-systems.scm
+++ b/gnu/build/file-systems.scm
@@ -899,6 +899,10 @@ (define (ENOENT-safe proc)
(format (current-error-port)
"warning: failed to read from device '~a'~%" device)
#f)
+ ((= EMEDIUMTYPE errno) ;inaccessible, like DRBD secondaries
+ (format (current-error-port)
+ "warning: failed to open device '~a'~%" device)
+ #f)
(else
(apply throw args))))))))
--
2.38.0
next reply other threads:[~2022-10-31 10:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-31 10:27 Marius Bakke [this message]
2022-11-03 19:06 ` bug#58924: [PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions' Marius Bakke
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=20221031102721.20065-1-marius@gnu.org \
--to=marius@gnu.org \
--cc=58924@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.