me
/
guix
Archived
1
0
Fork 0

file-systems: Gracefully handle EMEDIUMTYPE in 'read-partitions'.

* gnu/build/file-systems.scm (ENOENT-safe): Catch EMEDIUMTYPE and warn.
Marius Bakke 2022-10-31 11:23:43 +01:00
parent 706f25f24d
commit c1261b3a5d
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 4 additions and 0 deletions

View File

@ -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))))))))