GNU bug report logs -
#58924
[PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'.
Previous Next
Reported by: Marius Bakke <marius <at> gnu.org>
Date: Mon, 31 Oct 2022 10:28:01 UTC
Severity: normal
Tags: patch
Done: Marius Bakke <marius <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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
This bug report was last modified 2 years and 258 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.