Lines Matching refs:fc
198 cifs_parse_security_flavors(struct fs_context *fc, char *value, struct smb3_fs_context *ctx) in cifs_parse_security_flavors() argument
212 cifs_errorf(fc, "sec=krb5p is not supported!\n"); in cifs_parse_security_flavors()
236 cifs_errorf(fc, "bad security option: %s\n", value); in cifs_parse_security_flavors()
253 cifs_parse_cache_flavor(struct fs_context *fc, char *value, struct smb3_fs_context *ctx) in cifs_parse_cache_flavor() argument
289 cifs_errorf(fc, "bad cache= option: %s\n", value); in cifs_parse_cache_flavor()
338 cifs_parse_smb_version(struct fs_context *fc, char *value, struct smb3_fs_context *ctx, bool is_smb… in cifs_parse_smb_version() argument
346 cifs_errorf(fc, "mount with legacy dialect disabled\n"); in cifs_parse_smb_version()
350 cifs_errorf(fc, "vers=1.0 (cifs) not permitted when mounting with smb3\n"); in cifs_parse_smb_version()
353 …cifs_errorf(fc, "Use of the less secure dialect vers=1.0 is not recommended unless required for ac… in cifs_parse_smb_version()
359 cifs_errorf(fc, "mount with legacy dialect disabled\n"); in cifs_parse_smb_version()
363 cifs_errorf(fc, "vers=2.0 not permitted when mounting with smb3\n"); in cifs_parse_smb_version()
371 cifs_errorf(fc, "vers=1.0 (cifs) mount not permitted when legacy dialects disabled\n"); in cifs_parse_smb_version()
374 cifs_errorf(fc, "vers=2.0 mount not permitted when legacy dialects disabled\n"); in cifs_parse_smb_version()
402 cifs_errorf(fc, "Unknown vers= option specified: %s\n", value); in cifs_parse_smb_version()
541 static void smb3_fs_context_free(struct fs_context *fc);
542 static int smb3_fs_context_parse_param(struct fs_context *fc,
544 static int smb3_fs_context_parse_monolithic(struct fs_context *fc,
546 static int smb3_get_tree(struct fs_context *fc);
547 static int smb3_reconfigure(struct fs_context *fc);
569 static int smb3_fs_context_parse_monolithic(struct fs_context *fc, in smb3_fs_context_parse_monolithic() argument
578 ret = security_sb_eat_lsm_opts(options, &fc->security); in smb3_fs_context_parse_monolithic()
612 ret = vfs_parse_fs_string(fc, key, value, len); in smb3_fs_context_parse_monolithic()
623 static int smb3_fs_context_validate(struct fs_context *fc) in smb3_fs_context_validate() argument
625 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_validate()
628 cifs_errorf(fc, "SMB Direct requires Version >=3.0\n"); in smb3_fs_context_validate()
635 cifs_errorf(fc, "Multiuser mounts require kernels with CONFIG_KEYS enabled\n"); in smb3_fs_context_validate()
645 cifs_errorf(fc, "CIFS mount error: No usable UNC path provided in device string!\n"); in smb3_fs_context_validate()
651 cifs_errorf(fc, "Malformed UNC. Unable to find share name.\n"); in smb3_fs_context_validate()
686 static int smb3_get_tree_common(struct fs_context *fc) in smb3_get_tree_common() argument
688 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_get_tree_common()
692 root = cifs_smb3_do_mount(fc->fs_type, 0, ctx); in smb3_get_tree_common()
696 fc->root = root; in smb3_get_tree_common()
704 static int smb3_get_tree(struct fs_context *fc) in smb3_get_tree() argument
706 int err = smb3_fs_context_validate(fc); in smb3_get_tree()
712 ret = smb3_get_tree_common(fc); in smb3_get_tree()
717 static void smb3_fs_context_free(struct fs_context *fc) in smb3_fs_context_free() argument
719 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_free()
728 static int smb3_verify_reconfigure_ctx(struct fs_context *fc, in smb3_verify_reconfigure_ctx() argument
733 cifs_errorf(fc, "can not change posixpaths during remount\n"); in smb3_verify_reconfigure_ctx()
737 cifs_errorf(fc, "can not change sec during remount\n"); in smb3_verify_reconfigure_ctx()
741 cifs_errorf(fc, "can not change multiuser during remount\n"); in smb3_verify_reconfigure_ctx()
746 cifs_errorf(fc, "can not change UNC during remount\n"); in smb3_verify_reconfigure_ctx()
751 cifs_errorf(fc, "can not change username during remount\n"); in smb3_verify_reconfigure_ctx()
756 cifs_errorf(fc, "can not change password during remount\n"); in smb3_verify_reconfigure_ctx()
761 cifs_errorf(fc, "can not change domainname during remount\n"); in smb3_verify_reconfigure_ctx()
765 cifs_errorf(fc, "can not change workstation_name during remount\n"); in smb3_verify_reconfigure_ctx()
770 cifs_errorf(fc, "can not change nodename during remount\n"); in smb3_verify_reconfigure_ctx()
775 cifs_errorf(fc, "can not change iocharset during remount\n"); in smb3_verify_reconfigure_ctx()
796 static int smb3_reconfigure(struct fs_context *fc) in smb3_reconfigure() argument
798 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_reconfigure()
799 struct dentry *root = fc->root; in smb3_reconfigure()
803 rc = smb3_verify_reconfigure_ctx(fc, ctx, cifs_sb->ctx); in smb3_reconfigure()
839 static int smb3_fs_context_parse_param(struct fs_context *fc, in smb3_fs_context_parse_param() argument
843 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_parse_param()
845 bool is_smb3 = !strcmp(fc->fs_type->name, "smb3"); in smb3_fs_context_parse_param()
867 opt = fs_parse(fc, smb3_fs_parameters, param, &result); in smb3_fs_context_parse_param()
1024 cifs_errorf(fc, "%s: Invalid blocksize\n", in smb3_fs_context_parse_param()
1045 cifs_errorf(fc, "%s: Invalid rasize %d vs. %d\n", in smb3_fs_context_parse_param()
1062 cifs_errorf(fc, "acregmax too large\n"); in smb3_fs_context_parse_param()
1069 cifs_errorf(fc, "acdirmax too large\n"); in smb3_fs_context_parse_param()
1075 cifs_errorf(fc, "timeout too large\n"); in smb3_fs_context_parse_param()
1080 cifs_errorf(fc, "actimeo ignored since acregmax or acdirmax specified\n"); in smb3_fs_context_parse_param()
1088 cifs_errorf(fc, "closetimeo too large\n"); in smb3_fs_context_parse_param()
1100 cifs_errorf(fc, "%s: Invalid max_credits value\n", in smb3_fs_context_parse_param()
1108 cifs_errorf(fc, "%s: Invalid max_channels value, needs to be 1-%d\n", in smb3_fs_context_parse_param()
1120 cifs_errorf(fc, "Invalid handle cache timeout, longer than 16 minutes\n"); in smb3_fs_context_parse_param()
1131 cifs_errorf(fc, "Unable to allocate memory for devname\n"); in smb3_fs_context_parse_param()
1134 cifs_errorf(fc, "Malformed UNC in devname\n"); in smb3_fs_context_parse_param()
1137 cifs_errorf(fc, "Unknown error parsing devname\n"); in smb3_fs_context_parse_param()
1142 cifs_errorf(fc, "OOM when copying UNC string\n"); in smb3_fs_context_parse_param()
1145 fc->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1146 if (fc->source == NULL) { in smb3_fs_context_parse_param()
1147 cifs_errorf(fc, "OOM when copying UNC string\n"); in smb3_fs_context_parse_param()
1167 cifs_errorf(fc, "OOM when copying username string\n"); in smb3_fs_context_parse_param()
1179 cifs_errorf(fc, "OOM when copying password string\n"); in smb3_fs_context_parse_param()
1206 cifs_errorf(fc, "OOM when copying domainname string\n"); in smb3_fs_context_parse_param()
1230 cifs_errorf(fc, "OOM when copying iocharset string\n"); in smb3_fs_context_parse_param()
1296 if (cifs_parse_smb_version(fc, param->string, ctx, is_smb3) != 0) in smb3_fs_context_parse_param()
1301 if (cifs_parse_security_flavors(fc, param->string, ctx) != 0) in smb3_fs_context_parse_param()
1305 if (cifs_parse_cache_flavor(fc, param->string, ctx) != 0) in smb3_fs_context_parse_param()
1310 cifs_errorf(fc, "Witness support needs CONFIG_CIFS_SWN_UPCALL config option\n"); in smb3_fs_context_parse_param()
1418 cifs_errorf(fc, "FS-Cache support needs CONFIG_CIFS_FSCACHE kernel config option set\n"); in smb3_fs_context_parse_param()
1439 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1445 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1456 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1484 int smb3_init_fs_context(struct fs_context *fc) in smb3_init_fs_context() argument
1565 fc->fs_private = ctx; in smb3_init_fs_context()
1566 fc->ops = &smb3_fs_context_ops; in smb3_init_fs_context()