[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'.
From: |
guix-commits |
Subject: |
02/06: file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'. |
Date: |
Thu, 3 Nov 2022 15:06:00 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit c1261b3a5d5c704737e6a02538f014967cf05f3e
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Oct 31 11:23:43 2022 +0100
file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'.
* 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 @@ caught and lead to a warning and #f as the result."
(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))))))))
- branch master updated (614a92cae8 -> a9fe9b4684), guix-commits, 2022/11/03
- 02/06: file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'.,
guix-commits <=
- 01/06: services: ganeti: OS variants can be a directory., guix-commits, 2022/11/03
- 04/06: gnu: ungoogled-chromium: Update to 107.0.5304.87-1., guix-commits, 2022/11/03
- 06/06: gnu: ganeti-instance-guix: Update to 0.7., guix-commits, 2022/11/03
- 03/06: gnu: Open vSwitch: Update to 3.0.1., guix-commits, 2022/11/03
- 05/06: gnu: drbd-utils: Update to 9.22.0., guix-commits, 2022/11/03