Lines Matching refs:mm
292 struct mtab_list *mtl, *mtl2 = 0, *mm, *remount; in mount_main() local
326 mm = dlist_terminate(mtl = mtl2 = xgetmountlist(0)); in mount_main()
327 if (remount) remount = mm; in mount_main()
335 for (mm = remount ? remount : mtl; mm; mm = (remount ? mm->prev : mm->next)) in mount_main()
343 noauto = comma_scan(mm->opts, "noauto", 1); in mount_main()
349 if (strncmp(dev, mm->dir, len) in mount_main()
350 || (mm->dir[len] && mm->dir[len] != '/')) continue; in mount_main()
352 if (!mountlist_istype(mm,TT.type) || !comma_scanall(mm->opts,TT.bigO)) in mount_main()
355 if (dir && strcmp(dir, mm->dir)) continue; in mount_main()
356 if (dev && strcmp(dev, mm->device) && (dir || strcmp(dev, mm->dir))) in mount_main()
364 if (!strcmp(mm->dir, mmm->dir) && !strcmp(mm->device, mmm->device)) in mount_main()
369 TT.okuser = comma_scan(mm->opts, "user", 1); in mount_main()
370 aflags = flag_opts(mm->opts, flags, &aopts); in mount_main()
373 mount_filesystem(mm->device, mm->dir, mm->type, aflags, aopts); in mount_main()
383 if (!mm && !FLAG(a)) in mount_main()
389 for (mtl = xgetmountlist(0); mtl && (mm = dlist_pop(&mtl)); free(mm)) { in mount_main()
392 if (TT.type && strcmp(TT.type, mm->type)) continue; in mount_main()
393 if (*mm->device == '/') s = xabspath(mm->device, 0); in mount_main()
395 s ? s : mm->device, mm->dir, mm->type, mm->opts); in mount_main()