Lines Matching defs:mtpoint
97 char *mtpoint, *unitstr;
263 mtpoint = argv[1];
280 do_mount(mount_arg, mtpoint);
281 do_mtptsetup(mtpoint, &mi);
437 do_mount(const char *args, const char *mtpoint)
442 mdname, unit, mdsuffix, mtpoint);
451 do_mtptsetup(const char *mtpoint, struct mtpt_info *mip)
459 if (statfs(mtpoint, &sfs) == -1) {
460 warn("statfs: %s", mtpoint);
467 mtpoint);
471 mtpoint);
478 debugprintf("changing mode of %s to %o.", mtpoint,
481 if (chmod(mtpoint, mip->mi_mode) == -1)
482 err(1, "chmod: %s", mtpoint);
489 debugprintf("changing owner (user) or %s to %u.", mtpoint,
492 if (chown(mtpoint, mip->mi_uid, -1) == -1)
493 err(1, "chown %s to %u (user)", mtpoint,
497 debugprintf("changing owner (group) or %s to %u.", mtpoint,
500 if (chown(mtpoint, -1, mip->mi_gid) == -1)
501 err(1, "chown %s to %u (group)", mtpoint,