Lines Matching defs:dir
51 static void do_umount(char *dir, char *dev, int flags)
62 if (!strcmp(mt->dir, dir)) while ((s = comma_iterate(&mt->opts, &len))) {
78 if (!umount2(dir, flags)) {
79 if (toys.optflags & FLAG_v) xprintf("%s unmounted\n", dir);
98 if (!mount("", dir, "", MS_REMOUNT|MS_RDONLY, "")) {
99 if (toys.optflags & FLAG_v) xprintf("%s remounted ro\n", dir);
104 perror_msg_raw(dir);
131 if (mountlist_istype(ml, typestr)) do_umount(ml->dir, ml->device, flags);
141 if (!strcmp(ml->dir, abs)) break;
144 abs = ml->dir;
150 if (ml && abs != ml->dir) free(abs);