[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
63/67: syscalls: 'device-in-use?' does not create a port.
From: |
guix-commits |
Subject: |
63/67: syscalls: 'device-in-use?' does not create a port. |
Date: |
Wed, 16 Jan 2019 19:00:45 -0500 (EST) |
civodul pushed a commit to branch wip-newt-installer
in repository guix.
commit 15ec37196f77e59f0fa9b1752bcbaa7a7a7bee77
Author: Ludovic Courtès <address@hidden>
Date: Wed Jan 16 16:16:24 2019 +0100
syscalls: 'device-in-use?' does not create a port.
* guix/build/syscalls.scm (device-in-use?): Use 'open-fdes' rather than
'open-file'.
---
guix/build/syscalls.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index 6f2a061..94d335b 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -693,9 +693,9 @@ mounted at FILE."
from fdisk_device_is_used function of util-linux. This is particulary useful
for devices that do not appear in /proc/self/mounts like overlayfs lowerdir
backend device."
- (let*-values (((port) (open-file device "rb"))
- ((ret err) (%ioctl (fileno port) BLKRRPART %null-pointer)))
- (close-port port)
+ (let*-values (((fd) (open-fdes device O_RDONLY))
+ ((ret err) (%ioctl fd BLKRRPART %null-pointer)))
+ (close-fdes fd)
(cond
((= ret 0)
#f)
- 54/67: installer: parted: Use read-luks-partition-uuid instead of find-partition-by-luks-uuid., (continued)
- 54/67: installer: parted: Use read-luks-partition-uuid instead of find-partition-by-luks-uuid., guix-commits, 2019/01/16
- 59/67: installer: welcome: Put "Graphical installer" ahead., guix-commits, 2019/01/16
- 55/67: installer: Various renamings., guix-commits, 2019/01/16
- 64/67: syscalls: 'device-in-use?' returns #f upon EINVAL., guix-commits, 2019/01/16
- 42/67: installer: network: Do not show an empty technology list., guix-commits, 2019/01/16
- 41/67: installer: keymap: Fix keymap selection of layouts with not variant., guix-commits, 2019/01/16
- 58/67: installer: Rename "Ok" buttons to "OK"., guix-commits, 2019/01/16
- 67/67: installer: Fix manual partitioning., guix-commits, 2019/01/16
- 61/67: installer: keymap: Put English layout and international variant ahead., guix-commits, 2019/01/16
- 56/67: installer: Various renamins follow-up., guix-commits, 2019/01/16
- 63/67: syscalls: 'device-in-use?' does not create a port.,
guix-commits <=
- 31/67: installer: Add partitioning support., guix-commits, 2019/01/16
- 51/67: installer: partionment: Add encryption support., guix-commits, 2019/01/16
- 04/67: gnu: Add graphical installer support., guix-commits, 2019/01/16