Lines Matching defs:mop
2281 mntopt_t *mop, *motbl;
2303 if ((mop = vfs_hasopt(omo, imo->mo_list[i].mo_name)) != NULL) {
2305 uint_t index = mop - omo->mo_list;
2307 newcanp = vfs_mergecancelopts(mop, &motbl[index]);
2339 struct mntopt *mop;
2346 mop = &mops->mo_list[i];
2348 if (mop->mo_flags & MO_EMPTY)
2350 if (strcmp(opt, mop->mo_name))
2352 mop->mo_flags &= ~MO_SET;
2353 if (mop->mo_arg != NULL) {
2354 kmem_free(mop->mo_arg, strlen(mop->mo_arg) + 1);
2356 mop->mo_arg = NULL;
2393 mntopt_t *mop;
2406 mop = &mops->mo_list[i];
2408 if (mop->mo_flags & MO_EMPTY) {
2413 mop->mo_name = sp;
2415 mop->mo_flags = MO_HASVALUE;
2417 mop->mo_flags = 0;
2418 } else if (strcmp(opt, mop->mo_name)) {
2421 if ((mop->mo_flags & MO_IGNORE) && (flags & VFS_NOFORCEOPT))
2423 if (arg != NULL && (mop->mo_flags & MO_HASVALUE) != 0) {
2429 if (mop->mo_arg != NULL)
2430 kmem_free(mop->mo_arg, strlen(mop->mo_arg) + 1);
2431 mop->mo_arg = sp;
2433 mop->mo_flags &= ~MO_NODISPLAY;
2435 mop->mo_flags |= MO_NODISPLAY;
2436 mop->mo_flags |= MO_SET;
2437 if (mop->mo_cancel != NULL) {
2440 for (cp = mop->mo_cancel; *cp != NULL; cp++)
2474 mntopt_t *mop, *motbl;
2486 mop = &motbl[count - 1];
2487 mop->mo_flags = MO_TAG;
2488 mop->mo_name = kmem_alloc(strlen(tag) + 1, KM_SLEEP);
2489 (void) strcpy(mop->mo_name, tag);
2490 return (mop);
2503 mntopt_t *mop;
2535 if ((mop = vfs_hasopt(mops, tag)) == NULL) {
2544 mop = vfs_addtag(mops, tag);
2546 if ((mop->mo_flags & MO_TAG) == 0) {
2566 mntopt_t *mop;
2593 if ((mop = vfs_hasopt(&vfsp->vfs_mntopts, tag)) == NULL) {
2597 if ((mop->mo_flags & MO_TAG) == 0) {
2671 struct mntopt *mop;
2676 mop = &mops->mo_list[i];
2678 if (mop->mo_flags & MO_EMPTY)
2680 if (strcmp(opt, mop->mo_name) == 0)
2681 return (mop);
2694 struct mntopt *mop;
2699 mop = &mops->mo_list[i];
2701 if (mop->mo_flags & MO_EMPTY)
2703 if (strcmp(opt, mop->mo_name))
2705 if ((mop->mo_flags & MO_SET) == 0)
2707 if (argp != NULL && (mop->mo_flags & MO_HASVALUE) != 0)
2708 *argp = mop->mo_arg;
2746 struct mntopt *mop;
2748 mop = &mp->mo_list[i];
2749 if (mop->mo_flags & MO_SET) {
2754 optlen = strlen(mop->mo_name);
2759 (void) strcpy(cp, mop->mo_name);
2764 if (mop->mo_arg != NULL) {
2767 arglen = strlen(mop->mo_arg);
2771 (void) strcpy(cp, mop->mo_arg);
2797 vfs_freeopt(mntopt_t *mop)
2799 if (mop->mo_name != NULL)
2800 kmem_free(mop->mo_name, strlen(mop->mo_name) + 1);
2802 vfs_freecancelopt(mop->mo_cancel);
2804 if (mop->mo_arg != NULL)
2805 kmem_free(mop->mo_arg, strlen(mop->mo_arg) + 1);