Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/autofs/autounmountd.c
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | unmount_by_fsid(const fsid_t fsid, const char *mountpoint) | ||||
if (error != 0) { | if (error != 0) { | ||||
if (errno == EBUSY) { | if (errno == EBUSY) { | ||||
log_debugx("cannot unmount %s (%s): %s", | log_debugx("cannot unmount %s (%s): %s", | ||||
mountpoint, fsid_str, strerror(errno)); | mountpoint, fsid_str, strerror(errno)); | ||||
} else { | } else { | ||||
log_warn("cannot unmount %s (%s)", | log_warn("cannot unmount %s (%s)", | ||||
mountpoint, fsid_str); | mountpoint, fsid_str); | ||||
} | } | ||||
} | } else | ||||
rpc_umntall(); | |||||
free(fsid_str); | free(fsid_str); | ||||
return (error); | return (error); | ||||
} | } | ||||
static time_t | static time_t | ||||
expire_automounted(time_t expiration_time) | expire_automounted(time_t expiration_time) | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |