Lines Matching defs:mtpoint
105 const char *mtpoint, *size_arg, *skel, *unitstr;
308 mtpoint = argv[1];
324 do_mount_tmpfs(mount_arg, mtpoint);
367 do_mount_md(mount_arg, mtpoint);
370 do_mtptsetup(mtpoint, &mi);
372 do_copy(mtpoint, skel);
531 do_mount_md(const char *args, const char *mtpoint)
536 mdname, unit, mdsuffix, mtpoint);
546 do_mount_tmpfs(const char *args, const char *mtpoint)
550 rv = run(NULL, "%s -t tmpfs %s tmp %s", _PATH_MOUNT, args, mtpoint);
560 do_mtptsetup(const char *mtpoint, struct mtpt_info *mip)
568 if (statfs(mtpoint, &sfs) == -1) {
569 warn("statfs: %s", mtpoint);
576 mtpoint);
580 mtpoint);
587 debugprintf("changing mode of %s to %o.", mtpoint,
590 if (chmod(mtpoint, mip->mi_mode) == -1)
591 err(1, "chmod: %s", mtpoint);
598 debugprintf("changing owner (user) or %s to %u.", mtpoint,
601 if (chown(mtpoint, mip->mi_uid, -1) == -1)
602 err(1, "chown %s to %u (user)", mtpoint,
606 debugprintf("changing owner (group) or %s to %u.", mtpoint,
609 if (chown(mtpoint, -1, mip->mi_gid) == -1)
610 err(1, "chown %s to %u (group)", mtpoint,
634 do_copy(const char *mtpoint, const char *skel)
641 rv = run(NULL, "/bin/pax -rw -pe . %s", mtpoint);