Lines Matching +full:1 +full:mv

16  * 1. Redistributions of source code must retain the above copyright
68 { "private", 0, ALTF_PRIVATE, 1 },
69 { "neglect_shares", 0, 0x02, 1 },
70 { "push_symlinks_in", 0, 0x04, 1 },
71 { "allow_other", 0, 0x08, 1 },
72 { "default_permissions", 0, 0x10, 1 },
74 { "max_read=", 0, ALTF_MAXREAD, 1 },
76 { "subtype=", 0, ALTF_SUBTYPE, 1 },
78 { "fsname=", 0, ALTF_FSNAME, 1 },
85 { "automounted", 0, ALTF_AUTOMOUNTED, 1 },
87 { "intr", 0, ALTF_INTR, 1 },
89 { "fd=", 0, 0x00, 1 },
90 { "rootmode=", 0, 0x00, 1 },
91 { "user_id=", 0, 0x00, 1 },
92 { "group_id=", 0, 0x00, 1 },
93 { "large_read", 0, 0x00, 1 },
95 { "nempty", 0, 0x00, 1 },
97 { "noasync", 1, MNT_ASYNC, 0},
130 struct mntval *mv; in main() local
143 int fd = -1, fdx; in main()
161 getmnt_silent = 1; in main()
163 verbose = 1; in main()
169 done = 1; in main()
181 reject_allow_other = 1; in main()
184 safe_level = 1; in main()
188 errx(1, "daemon specified inconsistently"); in main()
193 errx(1, "daemon opts specified inconsistently"); in main()
198 for (mv = mvals; mv->mv_flag; ++mv) { in main()
199 if (! (altflags & mv->mv_flag)) in main()
204 if (mo->m_flag != mv->mv_flag) in main()
212 mv->mv_len = q - p + 1; in main()
213 mv->mv_value = malloc(mv->mv_len); in main()
214 if (mv->mv_value == NULL) in main()
215 err(1, "malloc"); in main()
216 memcpy(mv->mv_value, p, mv->mv_len - 1); in main()
217 ((char *)mv->mv_value)[mv->mv_len - 1] = '\0'; in main()
225 errx(1, "special specified inconsistently"); in main()
230 errx(1, "mount path specified inconsistently"); in main()
234 verbose = 1; in main()
250 } while ((ch = getopt_long(argc, argv, "AvVho:SD:O:s:m:", longopts, NULL)) != -1); in main()
257 errx(1, "special specified inconsistently"); in main()
260 errx(1, "if mountpoint is given via an option, special should also be given via an option"); in main()
264 errx(1, "mount path specified inconsistently"); in main()
279 errx(1, "missing special and/or mountpoint"); in main()
292 errx(1, "\"allow_other\" usage is banned by respective option"); in main()
294 for (mv = mvals; mv->mv_flag; ++mv) { in main()
295 if (mo->m_flag != mv->mv_flag) in main()
297 if (mv->mv_value) { in main()
298 build_iovec(&iov, &iovlen, mo->m_option, mv->mv_value, mv->mv_len); in main()
299 iov_done = 1; in main()
305 __DECONST(void *, ""), -1); in main()
310 if (asprintf(&uscore_opt, "__%s", mo->m_option) == -1) in main()
311 err(1, "failed to allocate memory"); in main()
313 __DECONST(void *, ""), -1); in main()
319 safe_level = 1; in main()
322 errx(1, "safe mode, spawning daemon not allowed"); in main()
326 errx(1, "daemon specified inconsistently"); in main()
333 err(1, "%s", mntpath); in main()
345 err(1, "failed to open fuse device"); in main()
357 if (fstat(fd, &sbuf) == -1) in main()
358 err(1, "cannot stat device file descriptor"); in main()
366 errx(1, "mounting inappropriate device"); in main()
370 errx(1, "mounting inappropriate device"); in main()
379 err(1, "failed to open fuse device"); in main()
381 if (asprintf(&fds, "%d", fd) == -1) in main()
382 err(1, "failed to allocate memory"); in main()
383 setenv("FUSE_DEV_FD", fds, 1); in main()
385 setenv("FUSE_NO_MOUNT", "1", 1); in main()
394 len = strlen(daemon_str) + 1 + strlen(daemon_opts) + in main()
395 2 + 1; in main()
396 bgdaemon = calloc(1, len); in main()
399 err(1, "failed to allocate memory"); in main()
407 err(1, "failed to call fuse daemon"); in main()
410 err(1, "failed to fork for fuse daemon"); in main()
414 err(1, "failed to exec fuse daemon"); in main()
422 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "fusefs"), -1); in main()
423 build_iovec(&iov, &iovlen, "fspath", mntpath, -1); in main()
424 build_iovec(&iov, &iovlen, "from", dev, -1); in main()
425 build_iovec(&iov, &iovlen, "fd", fdstr, -1); in main()