Lines Matching refs:dir

90 	struct autodir *dir, *d;
213 for (dir = dir_head; dir; dir = dir->dir_next) {
218 if (strcmp(dir->dir_map, "-null") == 0)
225 for (d = dir->dir_prev; d; d = d->dir_prev) {
226 if (strcmp(dir->dir_name, d->dir_name) == 0)
236 if (mntp = find_mount(dir->dir_name, 1)) {
253 if (strcmp(mntp->mnt_special, dir->dir_map) == 0 &&
254 compare_opts(dir->dir_opts,
265 mntp = find_mount(dir->dir_name, 0);
270 dir->dir_name);
275 dir->dir_remount = 1;
284 if (lstat(dir->dir_name, &stbuf) == 0) {
286 pr_msg("%s: Not a directory", dir->dir_name);
290 if (mkdir_r(dir->dir_name)) {
291 pr_msg("%s: %m", dir->dir_name);
296 ai.path = dir->dir_name;
297 ai.opts = dir->dir_opts;
298 ai.map = dir->dir_map;
300 ai.direct = dir->dir_direct;
301 if (dir->dir_direct)
302 ai.key = dir->dir_name;
307 dir->dir_direct ? "direct" : "indirect");
308 if (dir->dir_opts && *dir->dir_opts) {
310 (void) strcat(mntopts, dir->dir_opts);
312 mntflgs = MS_OPTIONSTR | (dir->dir_remount ? MS_REMOUNT : 0);
313 if (mount(dir->dir_map, dir->dir_name, MS_DATA | mntflgs,
316 pr_msg("mount %s: %m", dir->dir_name);
323 if (dir->dir_remount)
324 pr_msg("%s remounted", dir->dir_name);
326 pr_msg("%s mounted", dir->dir_name);
485 struct autodir *dir;
513 for (dir = dir_head; dir; dir = dir->dir_next) {
514 if (strcmp(dir->dir_name, mnt->mnt_mountp) == 0) {
515 current = strcmp(dir->dir_map, "-null");
536 mkdir_r(dir)
537 char *dir;
542 if (mkdir(dir, 0555) == 0 || errno == EEXIST)
546 slash = strrchr(dir, '/');
550 err = mkdir_r(dir);
554 return (mkdir(dir, 0555));