Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/autofs/automount.c
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | unmount_by_statfs(const struct statfs *sb, bool force) | ||||
flags = MNT_BYFSID; | flags = MNT_BYFSID; | ||||
if (force) | if (force) | ||||
flags |= MNT_FORCE; | flags |= MNT_FORCE; | ||||
error = unmount(fsid_str, flags); | error = unmount(fsid_str, flags); | ||||
free(fsid_str); | free(fsid_str); | ||||
if (error != 0) | if (error != 0) | ||||
log_warn("cannot unmount %s", sb->f_mntonname); | log_warn("cannot unmount %s", sb->f_mntonname); | ||||
else | |||||
rpc_umntall(); | |||||
return (error); | return (error); | ||||
} | } | ||||
static const struct statfs * | static const struct statfs * | ||||
find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) | find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint) | ||||
{ | { | ||||
int i; | int i; | ||||
▲ Show 20 Lines • Show All 306 Lines • Show Last 20 Lines |