Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103422707
D27801.id84074.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27801.id84074.diff
View Options
Index: usr.sbin/autofs/automount.c
===================================================================
--- usr.sbin/autofs/automount.c
+++ usr.sbin/autofs/automount.c
@@ -80,6 +80,8 @@
free(fsid_str);
if (error != 0)
log_warn("cannot unmount %s", sb->f_mntonname);
+ else
+ rpc_umntall();
return (error);
}
Index: usr.sbin/autofs/autounmountd.c
===================================================================
--- usr.sbin/autofs/autounmountd.c
+++ usr.sbin/autofs/autounmountd.c
@@ -170,7 +170,8 @@
log_warn("cannot unmount %s (%s)",
mountpoint, fsid_str);
}
- }
+ } else
+ rpc_umntall();
free(fsid_str);
Index: usr.sbin/autofs/common.h
===================================================================
--- usr.sbin/autofs/common.h
+++ usr.sbin/autofs/common.h
@@ -96,6 +96,7 @@
void defined_init(void);
void defined_parse_and_add(char *def);
void lesser_daemon(void);
+void rpc_umntall(void);
int main_automount(int argc, char **argv);
int main_automountd(int argc, char **argv);
Index: usr.sbin/autofs/common.c
===================================================================
--- usr.sbin/autofs/common.c
+++ usr.sbin/autofs/common.c
@@ -1204,6 +1204,19 @@
}
}
+/*
+ * Applicable to NFSv3 only, see rpc.umntall(8).
+ */
+void
+rpc_umntall(void)
+{
+ FILE *f;
+
+ f = auto_popen("rpc.umntall", "-k", NULL);
+ assert(f != NULL);
+ auto_pclose(f);
+}
+
int
main(int argc, char **argv)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 8:05 PM (7 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14847656
Default Alt Text
D27801.id84074.diff (1 KB)
Attached To
Mode
D27801: automount(8): try umount(8) before unmount(3)
Attached
Detach File
Event Timeline
Log In to Comment