Lines Matching defs:mntopts
3243 char *mntopts;
3247 mntopts = kmem_zalloc(MAX_MNTOPT_STR, KM_SLEEP);
3259 if (nfs4_trigger_add_mntopt(mntopts, mop->mo_name, vfsp)) {
3260 kmem_free(mntopts, MAX_MNTOPT_STR);
3278 if (nfs4_trigger_add_mntopt(mntopts, MNTOPT_XATTR, vfsp) ||
3279 nfs4_trigger_add_mntopt(mntopts, MNTOPT_NOXATTR, vfsp)) {
3280 kmem_free(mntopts, MAX_MNTOPT_STR);
3284 return (mntopts);
3288 nfs4_trigger_destroy_mntopts(char *mntopts)
3290 if (mntopts)
3291 kmem_free(mntopts, MAX_MNTOPT_STR);
3295 * Check a single mount option (optname). Add to mntopts if it is set in VFS.
3298 nfs4_trigger_add_mntopt(char *mntopts, char *optname, vfs_t *vfsp)
3300 if (mntopts == NULL || optname == NULL || vfsp == NULL)
3304 size_t mntoptslen = strlen(mntopts);
3312 if (*mntopts != '\0')
3313 (void) strcat(mntopts, ",");
3315 (void) strcat(mntopts, optname);