Lines Matching refs:mntopts
3255 char *mntopts;
3259 mntopts = kmem_zalloc(MAX_MNTOPT_STR, KM_SLEEP);
3271 if (nfs4_trigger_add_mntopt(mntopts, mop->mo_name, vfsp)) {
3272 kmem_free(mntopts, MAX_MNTOPT_STR);
3290 if (nfs4_trigger_add_mntopt(mntopts, MNTOPT_XATTR, vfsp) ||
3291 nfs4_trigger_add_mntopt(mntopts, MNTOPT_NOXATTR, vfsp)) {
3292 kmem_free(mntopts, MAX_MNTOPT_STR);
3296 return (mntopts);
3300 nfs4_trigger_destroy_mntopts(char *mntopts)
3302 if (mntopts)
3303 kmem_free(mntopts, MAX_MNTOPT_STR);
3307 * Check a single mount option (optname). Add to mntopts if it is set in VFS.
3310 nfs4_trigger_add_mntopt(char *mntopts, char *optname, vfs_t *vfsp)
3312 if (mntopts == NULL || optname == NULL || vfsp == NULL)
3316 size_t mntoptslen = strlen(mntopts);
3324 if (*mntopts != '\0')
3325 (void) strcat(mntopts, ",");
3327 (void) strcat(mntopts, optname);