Lines Matching defs:mntbuf
68 find_statfs(const struct statvfs *mntbuf, int nitems, const char *mountpoint)
73 if (strcmp(mntbuf[i].f_mntonname, mountpoint) == 0)
74 return mntbuf + i;
104 const char *prefix, const struct statvfs *mntbuf, int nitems)
116 sb = find_statfs(mntbuf, nitems, mountpoint);
145 struct statvfs *mntbuf;
150 nitems = getmntinfo(&mntbuf, MNT_WAIT);
157 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) {
159 mntbuf[i].f_mntonname);
163 n = node_find(root, mntbuf[i].f_mntonname);
166 mntbuf[i].f_mntonname);
171 "in new configuration; unmounting", mntbuf[i].f_mntonname);
172 unmount_by_statfs(&(mntbuf[i]), false);
180 n->n_key, mntbuf, nitems);
186 rootdir, mntbuf, nitems);
206 struct statvfs *mntbuf;
209 nitems = getmntinfo(&mntbuf, MNT_WAIT);
216 if (strcmp(mntbuf[i].f_fstypename, "autofs") != 0) {
218 mntbuf[i].f_mntonname);
222 flush_autofs(mntbuf[i].f_mntonname);
229 struct statvfs *mntbuf;
232 nitems = getmntinfo(&mntbuf, MNT_WAIT);
239 if (strcmp(mntbuf[i].f_fstypename, "autofs") == 0) {
241 mntbuf[i].f_mntonname);
245 if ((mntbuf[i].f_flag & MNT_AUTOMOUNTED) == 0) {
247 mntbuf[i].f_mntonname);
251 unmount_by_statfs(&(mntbuf[i]), force);