Lines Matching refs:margs
202 struct cachefs_mountargs margs; in main() local
294 margs.cfs_options.opt_flags = CFS_ACCESS_BACKFS; in main()
295 margs.cfs_options.opt_popsize = DEF_POP_SIZE; in main()
296 margs.cfs_options.opt_fgsize = DEF_FILEGRP_SIZE; in main()
297 margs.cfs_fsid = NULL; in main()
298 memset(margs.cfs_cacheid, 0, sizeof (margs.cfs_cacheid)); in main()
299 margs.cfs_cachedir = CFS_DEF_DIR; in main()
300 margs.cfs_backfs = NULL; in main()
301 margs.cfs_acregmin = 0; in main()
302 margs.cfs_acregmax = 0; in main()
303 margs.cfs_acdirmin = 0; in main()
304 margs.cfs_acdirmax = 0; in main()
311 xx = set_cfs_args(optionp, &margs, &mflag, &backfstypep, &reducep, in main()
332 if ((margs.cfs_options.opt_flags & in main()
334 margs.cfs_options.opt_flags |= CFS_WRITE_AROUND; in main()
350 margs.cfs_fsid = get_back_fsid(specp); in main()
351 if (margs.cfs_fsid == NULL) { in main()
360 if (first_time_ab(margs.cfs_cachedir)) in main()
361 if (check_cache(margs.cfs_cachedir)) in main()
365 if (margs.cfs_cacheid[0] == '\0') { in main()
366 char *cacheid = get_cacheid(margs.cfs_fsid, mntp); in main()
373 strcpy(margs.cfs_cacheid, cacheid); in main()
377 lockid = cachefs_dir_lock(margs.cfs_cachedir, 1); in main()
385 if ((margs.cfs_backfs == NULL) && in main()
387 (margs.cfs_options.opt_flags & CFS_SLIDE))) { in main()
390 if (margs.cfs_options.opt_flags & CFS_DISCONNECTABLE) { in main()
397 xx = dobackmnt(&margs, reducep, specp, backfstypep, in main()
405 rmdir(margs.cfs_backfs); in main()
423 if (margs.cfs_backfs != NULL && strcmp(backfstypep, "nfs") == 0) { in main()
425 nfsvers = cachefs_get_back_nfsvers(margs.cfs_backfs, nomnttab); in main()
433 margs.cfs_options.opt_flags = CFS_BACKFS_NFSV4; in main()
452 margs.cfs_options.opt_flags = CFS_BACKFS_NFSV4; in main()
470 margs.cfs_hostname = servname; in main()
475 margs.cfs_hostname = "server unknown"; in main()
476 margs.cfs_backfsname = specp; in main()
484 margs.cfs_backfsname = strp; in main()
488 xx = mount((margs.cfs_backfs != NULL) ? margs.cfs_backfs : "nobackfs", in main()
490 &margs, sizeof (margs), in main()
499 } else if ((errno == EAGAIN) && (margs.cfs_backfs == NULL)) { in main()
509 newargv[xx++] = margs.cfs_backfs; in main()
530 rmdir(margs.cfs_backfs); in main()
541 record_mount(mntp, specp, margs.cfs_backfs, backfstypep, in main()
542 margs.cfs_cachedir, margs.cfs_cacheid, in main()
547 daemon_notify(margs.cfs_cachedir, margs.cfs_cacheid); in main()
565 strcmp(margs.cfs_backfs, in main()
570 mtdesc.mtd_mntpt = margs.cfs_backfs; in main()