1
0
forked from pool/util-linux
OBS User unknown 2008-11-28 15:08:25 +00:00 committed by Git OBS Bridge
parent d6455bc33b
commit 20ac23d7b5
3 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,18 @@
--- mount/lomount.c
+++ mount/lomount.c
@@ -109,7 +109,14 @@ static int
is_loop_used(int fd)
{
struct loop_info li;
- return ioctl (fd, LOOP_GET_STATUS, &li) == 0;
+ int ret;
+ ret = ioctl (fd, LOOP_GET_STATUS, &li);
+ if (ret == 0)
+ return 1;
+ if (ret < 0 && (errno == ENXIO))
+ return 0;
+ /* all other errors, e.g. ENOENT or ESTALE are an error. */
+ return -1;
}
int

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 27 01:27:19 CET 2008 - dmueller@suse.de
- mount: fix hang on trying to find a free loop device
if one of them has a stale nfs handle mounted (bnc#449646)
-------------------------------------------------------------------
Mon Nov 24 15:24:11 CET 2008 - mkoenig@suse.de

View File

@ -30,7 +30,7 @@ License: BSD 3-Clause; GPL v2 or later
Group: System/Base
AutoReqProv: on
Version: 2.14.1
Release: 8
Release: 9
Requires: %name-lang = %{version}
Summary: A collection of basic system utilities
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/%name-ng-%version.tar.bz2
@ -71,6 +71,7 @@ Patch3: util-linux-2.12r-fdisk_remove_bogus_warnings.patch
Patch4: util-linux-2.13-hwclock_rtc_wait_busy_tempfix.patch
#
Patch5: util-linux-2.13.1-fdisk_cfdisk_yesno.patch
Patch6: fix-hang-on-stale-nfs.diff
Patch7: util-linux-2.14-mount_retry_on_nomedium.patch
Patch8: util-linux-2.14.1-lscpu.patch
Patch9: util-linux-2.14.1-lscpu_sysroot_option.patch
@ -126,6 +127,7 @@ Authors:
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6
%patch7 -p1
%patch8 -p1
%patch9 -p1
@ -609,6 +611,9 @@ fi
#%endif
%changelog
* Thu Nov 27 2008 dmueller@suse.de
- mount: fix hang on trying to find a free loop device
if one of them has a stale nfs handle mounted (bnc#449646)
* Mon Nov 24 2008 mkoenig@suse.de
- mount: fix locking patch to not break -n [bnc#447937]
* Thu Nov 20 2008 mkoenig@suse.de