[PATCH master f13-branch] Suppress failures to tear down /dev/loop devices (#591829)

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

 



Per comment #1: tearing down the loop device may or may not succeed
due to lazy unmounting of filesystem.
---
 loader/undomounts.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/loader/undomounts.c b/loader/undomounts.c
index af5caaa..81eed85 100644
--- a/loader/undomounts.c
+++ b/loader/undomounts.c
@@ -111,8 +111,7 @@ void undoLoop(struct unmountInfo * fs, int numFs, int this) {
     if ((fd = open("/tmp/loop", O_RDONLY, 0)) < 0) {
 	printf(" failed to open device: %d", errno);
     } else {
-	if (ioctl(fd, LOOP_CLR_FD, 0))
-	    printf(" LOOP_CLR_FD failed: %d", errno);
+	ioctl(fd, LOOP_CLR_FD, 0);
 	close(fd);
     }
 
-- 
1.6.6.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux