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 616867 Details for
Bug 856296
Duplicate enty for the /net map cause /etc/init.d/autofs stop to fail
[?]
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 - fix null map entry order handling
autofs-5.0.5-fix-null-map-entry-order-handling.patch (text/plain), 2.24 KB, created by
Ian Kent
on 2012-09-25 05:55:58 UTC
(
hide
)
Description:
Patch - fix null map entry order handling
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2012-09-25 05:55:58 UTC
Size:
2.24 KB
patch
obsolete
>autofs-5.0.5 - fix null map entry order handling > >From: Ian Kent <ikent@redhat.com> > >If a null map entry appears after a corresponding indirect map entry >autofs doesn't handle it properly. > >Since it appears after the map entry it should'nt affect it but autofs >doesn't account for this case and assumes the map entry is already >mounted and tries to shut it down causing attempted access to facilities >that don't exist. >--- > > CHANGELOG | 1 + > lib/master.c | 32 +++++++++++++++++++++++++++++--- > 2 files changed, 30 insertions(+), 3 deletions(-) > > >--- autofs-5.0.5.orig/CHANGELOG >+++ autofs-5.0.5/CHANGELOG >@@ -95,6 +95,7 @@ > - fix sss wildcard match. > - fix dlopen() error handling in sss module. > - fix configure string length tests for sss library. >+- fix null map entry order handling. > > 03/09/2009 autofs-5.0.5 > ----------------------- >--- autofs-5.0.5.orig/lib/master.c >+++ autofs-5.0.5/lib/master.c >@@ -1166,9 +1166,35 @@ int master_mount_mounts(struct master *m > > cache_readlock(nc); > ne = cache_lookup_distinct(nc, this->path); >- if (ne && this->age > ne->age) { >+ /* >+ * If this path matched a nulled entry the master map entry >+ * must be an indirect mount so the master map entry line >+ * number may be obtained from this->maps. >+ */ >+ if (ne) { >+ int lineno = ne->age; > cache_unlock(nc); >- st_add_task(ap, ST_SHUTDOWN_PENDING); >+ >+ /* null entry appears after map entry */ >+ if (this->maps->master_line < lineno) { >+ warn(ap->logopt, >+ "ignoring null entry that appears after " >+ "existing entry for %s", this->path); >+ goto cont; >+ } >+ if (ap->state != ST_INIT) { >+ st_add_task(ap, ST_SHUTDOWN_PENDING); >+ continue; >+ } >+ /* >+ * The map entry hasn't been started yet and we've >+ * seen a preceeding null map entry for it so just >+ * delete it from the master map entry list so it >+ * doesn't get in the road. >+ */ >+ list_del_init(&this->list); >+ master_free_mapent_sources(ap->entry, 1); >+ master_free_mapent(ap->entry); > continue; > } > nested = cache_partial_match(nc, this->path); >@@ -1181,7 +1207,7 @@ int master_mount_mounts(struct master *m > cache_delete(nc, nested->key); > } > cache_unlock(nc); >- >+cont: > st_mutex_lock(); > > state_pipe = this->ap->state_pipe[1];
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 856296
:
614942
| 616867