Lines Matching refs:opt_flags

2005 	int error, opt_flags, need_export, saved_errors;
2069 opt_flags = 0;
2108 if (do_opt(&cp, &endcp, &ngrp, &hostcount, &opt_flags,
2276 if (!(opt_flags & (OP_MAPROOT|OP_MAPALL))) {
2279 opt_flags |= OP_MAPROOT;
2281 if (check_options(opt_flags)) {
2293 } else if (opt_flags & OP_NET) {
2322 if (opt_flags & (OP_FSPATH|OP_FSUUID))
2324 (opt_flags & OP_FSPATH) ? fspath : NULL,
2325 (opt_flags & OP_FSUUID) ? fsuuid : NULL);
2354 if ((opt_flags & OP_FSPATH) && strcmp(fsb.f_mntonname, fspath)) {
2369 if (!(opt_flags & (OP_FSUUID|OP_FSPATH)))
2378 if ((opt_flags & OP_FSUUID) && bcmp(uuid, fsuuid, sizeof(fsuuid))) {
2391 if (bestulp && (opt_flags & OP_MISSING)) {
2396 opt_flags |= OP_MISSING;
2531 if (hang_options_setup(xd, opt_flags, &anon, tgrp, &secflavs, &need_export)) {
2545 if (need_export && !(checkexports && (opt_flags & OP_MISSING))) {
2575 error = hang_options_mountdir(xd, dirl2->dl_dir, opt_flags, tgrp, &secflavs);
3578 hang_options_setup(struct expdir *xd, int opt_flags, struct xucred *cr, struct grouplist *grp,
3589 if ((OP_EXOPTS(xd->xd_flags) == OP_EXOPTS(opt_flags)) &&
3590 (!(opt_flags & (OP_MAPALL|OP_MAPROOT)) || !crcmp(&xd->xd_cred, cr)) &&
3595 xd->xd_flags |= opt_flags | OP_DEFEXP | OP_ADD;
3603 xd->xd_flags |= opt_flags | OP_DEFEXP | OP_ADD;
3617 if ((OP_EXOPTS(ht->ht_flags) == OP_EXOPTS(opt_flags)) &&
3618 (!(opt_flags & (OP_MAPALL|OP_MAPROOT)) || !crcmp(&ht->ht_cred, cr)) &&
3642 if ((OP_EXOPTS(ht->ht_flags) != OP_EXOPTS(opt_flags)) ||
3643 ((opt_flags & (OP_MAPALL|OP_MAPROOT)) && crcmp(&ht->ht_cred, cr)) ||
3661 ht->ht_flags = opt_flags | OP_ADD;
3677 DEBUG(3, "hang_options_setup: %s %s 0x%x", xd->xd_dir, grp_name(grp), opt_flags);
3751 hang_options_mountdir(struct expdir *xd, char *dir, int opt_flags, struct grouplist *grp, struct nfs_sec *secflavs)
3792 if ((OP_EXOPTS(mxd->xd_flags) == OP_EXOPTS(opt_flags)) &&
3797 mxd->xd_flags |= opt_flags | OP_DEFEXP | OP_ADD;
3805 mxd->xd_flags |= opt_flags | OP_DEFEXP | OP_ADD;
3817 if ((OP_EXOPTS(ht->ht_flags) == OP_EXOPTS(opt_flags)) &&
3838 if ((OP_EXOPTS(ht->ht_flags) != OP_EXOPTS(opt_flags)) ||
3857 ht->ht_flags = opt_flags | OP_ADD;
3872 mxd->xd_dir, grp_name(grp), opt_flags);
5046 check_options(int opt_flags)
5048 if ((opt_flags & (OP_MAPROOT|OP_MAPALL)) == (OP_MAPROOT|OP_MAPALL)) {
5052 if ((opt_flags & OP_MASK) && (opt_flags & OP_NET) == 0) {