Lines Matching refs:fc
193 cifs_parse_security_flavors(struct fs_context *fc, char *value, struct smb3_fs_context *ctx) in cifs_parse_security_flavors() argument
207 cifs_errorf(fc, "sec=krb5p is not supported!\n"); in cifs_parse_security_flavors()
231 cifs_errorf(fc, "bad security option: %s\n", value); in cifs_parse_security_flavors()
248 cifs_parse_cache_flavor(struct fs_context *fc, char *value, struct smb3_fs_context *ctx) in cifs_parse_cache_flavor() argument
284 cifs_errorf(fc, "bad cache= option: %s\n", value); in cifs_parse_cache_flavor()
331 cifs_parse_smb_version(struct fs_context *fc, char *value, struct smb3_fs_context *ctx, bool is_smb… in cifs_parse_smb_version() argument
339 cifs_errorf(fc, "mount with legacy dialect disabled\n"); in cifs_parse_smb_version()
343 cifs_errorf(fc, "vers=1.0 (cifs) not permitted when mounting with smb3\n"); in cifs_parse_smb_version()
346 …cifs_errorf(fc, "Use of the less secure dialect vers=1.0 is not recommended unless required for ac… in cifs_parse_smb_version()
352 cifs_errorf(fc, "mount with legacy dialect disabled\n"); in cifs_parse_smb_version()
356 cifs_errorf(fc, "vers=2.0 not permitted when mounting with smb3\n"); in cifs_parse_smb_version()
364 cifs_errorf(fc, "vers=1.0 (cifs) mount not permitted when legacy dialects disabled\n"); in cifs_parse_smb_version()
367 cifs_errorf(fc, "vers=2.0 mount not permitted when legacy dialects disabled\n"); in cifs_parse_smb_version()
395 cifs_errorf(fc, "Unknown vers= option specified: %s\n", value); in cifs_parse_smb_version()
492 static void smb3_fs_context_free(struct fs_context *fc);
493 static int smb3_fs_context_parse_param(struct fs_context *fc,
495 static int smb3_fs_context_parse_monolithic(struct fs_context *fc,
497 static int smb3_get_tree(struct fs_context *fc);
498 static int smb3_reconfigure(struct fs_context *fc);
520 static int smb3_fs_context_parse_monolithic(struct fs_context *fc, in smb3_fs_context_parse_monolithic() argument
523 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_parse_monolithic()
534 ret = security_sb_eat_lsm_opts(options, &fc->security); in smb3_fs_context_parse_monolithic()
568 ret = vfs_parse_fs_string(fc, key, value, len); in smb3_fs_context_parse_monolithic()
579 static int smb3_fs_context_validate(struct fs_context *fc) in smb3_fs_context_validate() argument
581 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_validate()
584 cifs_errorf(fc, "SMB Direct requires Version >=3.0\n"); in smb3_fs_context_validate()
591 cifs_errorf(fc, "Multiuser mounts require kernels with CONFIG_KEYS enabled\n"); in smb3_fs_context_validate()
601 cifs_errorf(fc, "CIFS mount error: No usable UNC path provided in device string!\n"); in smb3_fs_context_validate()
607 cifs_errorf(fc, "Malformed UNC. Unable to find share name.\n"); in smb3_fs_context_validate()
642 static int smb3_get_tree_common(struct fs_context *fc) in smb3_get_tree_common() argument
644 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_get_tree_common()
648 root = cifs_smb3_do_mount(fc->fs_type, 0, ctx); in smb3_get_tree_common()
652 fc->root = root; in smb3_get_tree_common()
660 static int smb3_get_tree(struct fs_context *fc) in smb3_get_tree() argument
662 int err = smb3_fs_context_validate(fc); in smb3_get_tree()
666 return smb3_get_tree_common(fc); in smb3_get_tree()
669 static void smb3_fs_context_free(struct fs_context *fc) in smb3_fs_context_free() argument
671 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_free()
680 static int smb3_verify_reconfigure_ctx(struct fs_context *fc, in smb3_verify_reconfigure_ctx() argument
685 cifs_errorf(fc, "can not change posixpaths during remount\n"); in smb3_verify_reconfigure_ctx()
689 cifs_errorf(fc, "can not change sec during remount\n"); in smb3_verify_reconfigure_ctx()
693 cifs_errorf(fc, "can not change multiuser during remount\n"); in smb3_verify_reconfigure_ctx()
698 cifs_errorf(fc, "can not change UNC during remount\n"); in smb3_verify_reconfigure_ctx()
703 cifs_errorf(fc, "can not change username during remount\n"); in smb3_verify_reconfigure_ctx()
708 cifs_errorf(fc, "can not change password during remount\n"); in smb3_verify_reconfigure_ctx()
713 cifs_errorf(fc, "can not change domainname during remount\n"); in smb3_verify_reconfigure_ctx()
718 cifs_errorf(fc, "can not change nodename during remount\n"); in smb3_verify_reconfigure_ctx()
723 cifs_errorf(fc, "can not change iocharset during remount\n"); in smb3_verify_reconfigure_ctx()
737 static int smb3_reconfigure(struct fs_context *fc) in smb3_reconfigure() argument
739 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_reconfigure()
740 struct dentry *root = fc->root; in smb3_reconfigure()
744 rc = smb3_verify_reconfigure_ctx(fc, ctx, cifs_sb->ctx); in smb3_reconfigure()
779 static int smb3_fs_context_parse_param(struct fs_context *fc, in smb3_fs_context_parse_param() argument
783 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_parse_param()
785 bool is_smb3 = !strcmp(fc->fs_type->name, "smb3"); in smb3_fs_context_parse_param()
807 opt = fs_parse(fc, smb3_fs_parameters, param, &result); in smb3_fs_context_parse_param()
956 cifs_errorf(fc, "%s: Invalid blocksize\n", in smb3_fs_context_parse_param()
977 cifs_errorf(fc, "%s: Invalid rasize %d vs. %d\n", in smb3_fs_context_parse_param()
994 cifs_errorf(fc, "acregmax too large\n"); in smb3_fs_context_parse_param()
1001 cifs_errorf(fc, "acdirmax too large\n"); in smb3_fs_context_parse_param()
1007 cifs_errorf(fc, "timeout too large\n"); in smb3_fs_context_parse_param()
1012 cifs_errorf(fc, "actimeo ignored since acregmax or acdirmax specified\n"); in smb3_fs_context_parse_param()
1025 cifs_errorf(fc, "%s: Invalid max_credits value\n", in smb3_fs_context_parse_param()
1033 cifs_errorf(fc, "%s: Invalid max_channels value, needs to be 1-%d\n", in smb3_fs_context_parse_param()
1045 cifs_errorf(fc, "Invalid handle cache timeout, longer than 16 minutes\n"); in smb3_fs_context_parse_param()
1056 cifs_errorf(fc, "Unable to allocate memory for devname\n"); in smb3_fs_context_parse_param()
1059 cifs_errorf(fc, "Malformed UNC in devname\n"); in smb3_fs_context_parse_param()
1062 cifs_errorf(fc, "Unknown error parsing devname\n"); in smb3_fs_context_parse_param()
1067 cifs_errorf(fc, "OOM when copying UNC string\n"); in smb3_fs_context_parse_param()
1070 fc->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1071 if (fc->source == NULL) { in smb3_fs_context_parse_param()
1072 cifs_errorf(fc, "OOM when copying UNC string\n"); in smb3_fs_context_parse_param()
1092 cifs_errorf(fc, "OOM when copying username string\n"); in smb3_fs_context_parse_param()
1104 cifs_errorf(fc, "OOM when copying password string\n"); in smb3_fs_context_parse_param()
1131 cifs_errorf(fc, "OOM when copying domainname string\n"); in smb3_fs_context_parse_param()
1155 cifs_errorf(fc, "OOM when copying iocharset string\n"); in smb3_fs_context_parse_param()
1221 if (cifs_parse_smb_version(fc, param->string, ctx, is_smb3) != 0) in smb3_fs_context_parse_param()
1226 if (cifs_parse_security_flavors(fc, param->string, ctx) != 0) in smb3_fs_context_parse_param()
1230 if (cifs_parse_cache_flavor(fc, param->string, ctx) != 0) in smb3_fs_context_parse_param()
1235 cifs_errorf(fc, "Witness support needs CONFIG_CIFS_SWN_UPCALL config option\n"); in smb3_fs_context_parse_param()
1343 cifs_errorf(fc, "FS-Cache support needs CONFIG_CIFS_FSCACHE kernel config option set\n"); in smb3_fs_context_parse_param()
1364 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1370 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1381 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1401 int smb3_init_fs_context(struct fs_context *fc) in smb3_init_fs_context() argument
1479 fc->fs_private = ctx; in smb3_init_fs_context()
1480 fc->ops = &smb3_fs_context_ops; in smb3_init_fs_context()