Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 876732 Details for
Bug 1074376
am-utils will no longer start due to missing NFSv2
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch - linux umount wait on ebusy
am-utils-6.2-0.git.9b652fb4-linux-umount-wait-on-ebusy.patch (text/plain), 1.65 KB, created by
Ian Kent
on 2014-03-20 07:51:56 UTC
(
hide
)
Description:
Patch - linux umount wait on ebusy
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2014-03-20 07:51:56 UTC
Size:
1.65 KB
patch
obsolete
>am-utils-6.2-0.git.9b652fb4 - linux umount wait on ebusy > >From: Ian Kent <ikent@redhat.com> > >For some reason, when umounting autofs mounts after closing the ioctl >file handle, the kernel can return EBUSY for some small amount of time. > >This can cause umounts to incorrectly fail when in fact they should >succeed. > >Retrying for about a second and a half seems to work quite well. >--- > conf/umount/umount_linux.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/conf/umount/umount_linux.c b/conf/umount/umount_linux.c >index 782c2cd..81b0527 100644 >--- a/conf/umount/umount_linux.c >+++ b/conf/umount/umount_linux.c >@@ -63,6 +63,7 @@ umount_fs(char *mntdir, const char *mnttabname, u_int unmount_flags) > char loopstr[] = "loop="; > char *loopdev; > #endif /* HAVE_LOOP_DEVICE */ >+ unsigned int retries = 8; > > mp = mlist = read_mtab(mntdir, mnttabname); > >@@ -94,6 +95,7 @@ umount_fs(char *mntdir, const char *mnttabname, u_int unmount_flags) > unlock_mntlist(); > #endif /* MOUNT_TABLE_ON_FILE */ > >+again: > #if defined(HAVE_UMOUNT2) && defined(MNT2_GEN_OPT_DETACH) > /* > * If user asked to try forced unmounts, then do a quick check to see if >@@ -111,6 +113,14 @@ umount_fs(char *mntdir, const char *mnttabname, u_int unmount_flags) > } else > #endif /* defined(HAVE_UMOUNT2) && defined(MNT2_GEN_OPT_DETACH) */ > error = UNMOUNT_TRAP(mp_save->mnt); >+ >+ /* Linux kernel can be sluggish for some reason */ >+ if (error == EBUSY && retries--) { >+ struct timespec tm = {0, 200000000}; >+ nanosleep(&tm, NULL); >+ goto again; >+ } >+ > if (error < 0) { > plog(XLOG_WARNING, "unmount(%s) failed: %m", mp_save->mnt->mnt_dir); > switch ((error = errno)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1074376
:
876727
|
876728
|
876729
|
876730
|
876731
| 876732 |
876733
|
876735
|
876736