unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58924] [PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'.
@ 2022-10-31 10:27 Marius Bakke
  2022-11-03 19:06 ` bug#58924: " Marius Bakke
  0 siblings, 1 reply; 2+ messages in thread
From: Marius Bakke @ 2022-10-31 10:27 UTC (permalink / raw)
  To: 58924

* 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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#58924: [PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'.
  2022-10-31 10:27 [bug#58924] [PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions' Marius Bakke
@ 2022-11-03 19:06 ` Marius Bakke
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2022-11-03 19:06 UTC (permalink / raw)
  To: 58924-done

[-- Attachment #1: Type: text/plain, Size: 167 bytes --]

Marius Bakke <marius@gnu.org> skriver:

> * gnu/build/file-systems.scm (ENOENT-safe): Catch EMEDIUMTYPE and warn.

Pushed in c1261b3a5d5c704737e6a02538f014967cf05f3e.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-03 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-31 10:27 [bug#58924] [PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions' Marius Bakke
2022-11-03 19:06 ` bug#58924: " Marius Bakke

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).