diff options
| author | Brian C. Lane <bcl@redhat.com> | 2010-05-17 11:40:32 -0700 |
|---|---|---|
| committer | Brian C. Lane <bcl@redhat.com> | 2010-05-18 08:50:31 -0700 |
| commit | 3ba42492475327711dc2df50ec15d121df45c514 (patch) | |
| tree | be075f0292a3b0d4fe772577aa4dee76c9fda0ae /loader | |
| parent | f50c3a3f13eb0a8a5f2847929c5ec656f521d924 (diff) | |
Suppress failures to tear down /dev/loop devices (#591829)
Per comment #1: tearing down the loop device may or may not succeed
due to lazy unmounting of filesystem.
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/undomounts.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/loader/undomounts.c b/loader/undomounts.c index af5caaa4a..81eed851c 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); } |
