GNU bug report logs - #58924
[PATCH] file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'.

Previous Next

Package: guix-patches;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58924 in the body.
You can then email your comments to 58924 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#58924; Package guix-patches. (Mon, 31 Oct 2022 10:28:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marius Bakke <marius <at> gnu.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 31 Oct 2022 10:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <marius <at> gnu.org>
To: guix-patches <at> gnu.org
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





Reply sent to Marius Bakke <marius <at> gnu.org>:
You have taken responsibility. (Thu, 03 Nov 2022 19:08:01 GMT) Full text and rfc822 format available.

Notification sent to Marius Bakke <marius <at> gnu.org>:
bug acknowledged by developer. (Thu, 03 Nov 2022 19:08:01 GMT) Full text and rfc822 format available.

Message #10 received at 58924-done <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <marius <at> gnu.org>
To: 58924-done <at> debbugs.gnu.org
Subject: Re: [bug#58924] [PATCH] file-systems: Gracefully handle EMEDIUMTYPE
 in 'read-partitions'.
Date: Thu, 03 Nov 2022 20:06:56 +0100
[Message part 1 (text/plain, inline)]
Marius Bakke <marius <at> gnu.org> skriver:

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

Pushed in c1261b3a5d5c704737e6a02538f014967cf05f3e.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 02 Dec 2022 12:24:08 GMT) Full text and rfc822 format available.

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.