Lines Matching refs:mntbuf

64 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint)  in find_statfs()  argument
69 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0) in find_statfs()
70 return (mntbuf + i); in find_statfs()
100 const char *prefix, const struct statfs *mntbuf, int nitems) in mount_if_not_already() argument
112 sb = find_statfs(mntbuf, nitems, mountpoint); in mount_if_not_already()
141 struct statfs *mntbuf; in mount_unmount() local
145 nitems = getmntinfo(&mntbuf, MNT_WAIT); in mount_unmount()
152 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) { in mount_unmount()
154 mntbuf[i].f_mntonname); in mount_unmount()
158 n = node_find(root, mntbuf[i].f_mntonname); in mount_unmount()
161 mntbuf[i].f_mntonname); in mount_unmount()
166 "in new configuration; unmounting", mntbuf[i].f_mntonname); in mount_unmount()
167 unmount_by_statfs(&(mntbuf[i]), false); in mount_unmount()
175 n->n_key, mntbuf, nitems); in mount_unmount()
181 "/", mntbuf, nitems); in mount_unmount()
201 struct statfs *mntbuf; in flush_caches() local
204 nitems = getmntinfo(&mntbuf, MNT_WAIT); in flush_caches()
211 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) { in flush_caches()
213 mntbuf[i].f_mntonname); in flush_caches()
217 flush_autofs(mntbuf[i].f_mntonname); in flush_caches()
224 struct statfs *mntbuf; in unmount_automounted() local
227 nitems = getmntinfo(&mntbuf, MNT_WAIT); in unmount_automounted()
234 if (strcmp(mntbuf[i].f_fstypename, "autofs") == 0) { in unmount_automounted()
236 mntbuf[i].f_mntonname); in unmount_automounted()
240 if ((mntbuf[i].f_flags & MNT_AUTOMOUNTED) == 0) { in unmount_automounted()
242 mntbuf[i].f_mntonname); in unmount_automounted()
246 unmount_by_statfs(&(mntbuf[i]), force); in unmount_automounted()