Lines Matching refs:mntbuf
89 find_statfs(const struct statfs *mntbuf, int nitems, const char *mountpoint)
94 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0)
95 return (mntbuf + i);
146 const char *prefix, const struct statfs *mntbuf, int nitems)
158 sb = find_statfs(mntbuf, nitems, mountpoint);
187 struct statfs *mntbuf;
191 nitems = getmntinfo(&mntbuf, MNT_WAIT);
198 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) {
200 mntbuf[i].f_mntonname);
204 n = node_find(root, mntbuf[i].f_mntonname);
207 mntbuf[i].f_mntonname);
212 "in new configuration; unmounting", mntbuf[i].f_mntonname);
213 unmount_by_statfs(&(mntbuf[i]), false);
221 n->n_key, mntbuf, nitems);
227 "/", mntbuf, nitems);
263 struct statfs *mntbuf;
266 nitems = getmntinfo(&mntbuf, MNT_WAIT);
273 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) {
275 mntbuf[i].f_mntonname);
279 flush_autofs(mntbuf[i].f_mntonname);
286 struct statfs *mntbuf;
289 nitems = getmntinfo(&mntbuf, MNT_WAIT);
296 if (strcmp(mntbuf[i].f_fstypename, "autofs") == 0) {
298 mntbuf[i].f_mntonname);
302 if ((mntbuf[i].f_flags & MNT_AUTOMOUNTED) == 0) {
304 mntbuf[i].f_mntonname);
308 unmount_by_statfs(&(mntbuf[i]), force);