emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58924: closed ([PATCH] file-systems: Gracefully handle EMEDIUMTYPE i


From: GNU bug Tracking System
Subject: bug#58924: closed ([PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'.)
Date: Thu, 03 Nov 2022 19:08:01 +0000

Your message dated Thu, 03 Nov 2022 20:06:56 +0100
with message-id <878rkr3lin.fsf@gnu.org>
and subject line Re: [bug#58924] [PATCH] file-systems: Gracefully handle 
EMEDIUMTYPE in 'read-partitions'.
has caused the debbugs.gnu.org bug report #58924,
regarding [PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 
'read-partitions'.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
58924: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58924
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'. Date: Mon, 31 Oct 2022 11:27:21 +0100
* 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




--- End Message ---
--- Begin Message --- Subject: Re: [bug#58924] [PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'. Date: Thu, 03 Nov 2022 20:06:56 +0100
Marius Bakke <marius@gnu.org> skriver:

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

Pushed in c1261b3a5d5c704737e6a02538f014967cf05f3e.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]