Lines Matching refs:fc

194 cifs_parse_security_flavors(struct fs_context *fc, char *value, struct smb3_fs_context *ctx)  in cifs_parse_security_flavors()  argument
208 cifs_errorf(fc, "sec=krb5p is not supported!\n"); in cifs_parse_security_flavors()
232 cifs_errorf(fc, "bad security option: %s\n", value); in cifs_parse_security_flavors()
249 cifs_parse_cache_flavor(struct fs_context *fc, char *value, struct smb3_fs_context *ctx) in cifs_parse_cache_flavor() argument
285 cifs_errorf(fc, "bad cache= option: %s\n", value); in cifs_parse_cache_flavor()
336 cifs_parse_smb_version(struct fs_context *fc, char *value, struct smb3_fs_context *ctx, bool is_smb… in cifs_parse_smb_version() argument
344 cifs_errorf(fc, "mount with legacy dialect disabled\n"); in cifs_parse_smb_version()
348 cifs_errorf(fc, "vers=1.0 (cifs) not permitted when mounting with smb3\n"); in cifs_parse_smb_version()
351 …cifs_errorf(fc, "Use of the less secure dialect vers=1.0 is not recommended unless required for ac… in cifs_parse_smb_version()
357 cifs_errorf(fc, "mount with legacy dialect disabled\n"); in cifs_parse_smb_version()
361 cifs_errorf(fc, "vers=2.0 not permitted when mounting with smb3\n"); in cifs_parse_smb_version()
369 cifs_errorf(fc, "vers=1.0 (cifs) mount not permitted when legacy dialects disabled\n"); in cifs_parse_smb_version()
372 cifs_errorf(fc, "vers=2.0 mount not permitted when legacy dialects disabled\n"); in cifs_parse_smb_version()
400 cifs_errorf(fc, "Unknown vers= option specified: %s\n", value); in cifs_parse_smb_version()
539 static void smb3_fs_context_free(struct fs_context *fc);
540 static int smb3_fs_context_parse_param(struct fs_context *fc,
542 static int smb3_fs_context_parse_monolithic(struct fs_context *fc,
544 static int smb3_get_tree(struct fs_context *fc);
545 static int smb3_reconfigure(struct fs_context *fc);
567 static int smb3_fs_context_parse_monolithic(struct fs_context *fc, in smb3_fs_context_parse_monolithic() argument
570 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_parse_monolithic()
581 ret = security_sb_eat_lsm_opts(options, &fc->security); in smb3_fs_context_parse_monolithic()
615 ret = vfs_parse_fs_string(fc, key, value, len); in smb3_fs_context_parse_monolithic()
626 static int smb3_fs_context_validate(struct fs_context *fc) in smb3_fs_context_validate() argument
628 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_validate()
631 cifs_errorf(fc, "SMB Direct requires Version >=3.0\n"); in smb3_fs_context_validate()
638 cifs_errorf(fc, "Multiuser mounts require kernels with CONFIG_KEYS enabled\n"); in smb3_fs_context_validate()
648 cifs_errorf(fc, "CIFS mount error: No usable UNC path provided in device string!\n"); in smb3_fs_context_validate()
654 cifs_errorf(fc, "Malformed UNC. Unable to find share name.\n"); in smb3_fs_context_validate()
689 static int smb3_get_tree_common(struct fs_context *fc) in smb3_get_tree_common() argument
691 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_get_tree_common()
695 root = cifs_smb3_do_mount(fc->fs_type, 0, ctx); in smb3_get_tree_common()
699 fc->root = root; in smb3_get_tree_common()
707 static int smb3_get_tree(struct fs_context *fc) in smb3_get_tree() argument
709 int err = smb3_fs_context_validate(fc); in smb3_get_tree()
713 return smb3_get_tree_common(fc); in smb3_get_tree()
716 static void smb3_fs_context_free(struct fs_context *fc) in smb3_fs_context_free() argument
718 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_free()
727 static int smb3_verify_reconfigure_ctx(struct fs_context *fc, in smb3_verify_reconfigure_ctx() argument
732 cifs_errorf(fc, "can not change posixpaths during remount\n"); in smb3_verify_reconfigure_ctx()
736 cifs_errorf(fc, "can not change sec during remount\n"); in smb3_verify_reconfigure_ctx()
740 cifs_errorf(fc, "can not change multiuser during remount\n"); in smb3_verify_reconfigure_ctx()
745 cifs_errorf(fc, "can not change UNC during remount\n"); in smb3_verify_reconfigure_ctx()
750 cifs_errorf(fc, "can not change username during remount\n"); in smb3_verify_reconfigure_ctx()
755 cifs_errorf(fc, "can not change password during remount\n"); in smb3_verify_reconfigure_ctx()
760 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()
789 static int smb3_reconfigure(struct fs_context *fc) in smb3_reconfigure() argument
791 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_reconfigure()
792 struct dentry *root = fc->root; in smb3_reconfigure()
796 rc = smb3_verify_reconfigure_ctx(fc, ctx, cifs_sb->ctx); in smb3_reconfigure()
833 static int smb3_fs_context_parse_param(struct fs_context *fc, in smb3_fs_context_parse_param() argument
837 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_parse_param()
839 bool is_smb3 = !strcmp(fc->fs_type->name, "smb3"); in smb3_fs_context_parse_param()
861 opt = fs_parse(fc, smb3_fs_parameters, param, &result); in smb3_fs_context_parse_param()
1010 cifs_errorf(fc, "%s: Invalid blocksize\n", in smb3_fs_context_parse_param()
1031 cifs_errorf(fc, "%s: Invalid rasize %d vs. %d\n", in smb3_fs_context_parse_param()
1048 cifs_errorf(fc, "acregmax too large\n"); in smb3_fs_context_parse_param()
1055 cifs_errorf(fc, "acdirmax too large\n"); in smb3_fs_context_parse_param()
1061 cifs_errorf(fc, "timeout too large\n"); in smb3_fs_context_parse_param()
1066 cifs_errorf(fc, "actimeo ignored since acregmax or acdirmax specified\n"); in smb3_fs_context_parse_param()
1079 cifs_errorf(fc, "%s: Invalid max_credits value\n", in smb3_fs_context_parse_param()
1087 cifs_errorf(fc, "%s: Invalid max_channels value, needs to be 1-%d\n", in smb3_fs_context_parse_param()
1099 cifs_errorf(fc, "Invalid handle cache timeout, longer than 16 minutes\n"); in smb3_fs_context_parse_param()
1110 cifs_errorf(fc, "Unable to allocate memory for devname\n"); in smb3_fs_context_parse_param()
1113 cifs_errorf(fc, "Malformed UNC in devname\n"); in smb3_fs_context_parse_param()
1116 cifs_errorf(fc, "Unknown error parsing devname\n"); in smb3_fs_context_parse_param()
1121 cifs_errorf(fc, "OOM when copying UNC string\n"); in smb3_fs_context_parse_param()
1124 fc->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1125 if (fc->source == NULL) { in smb3_fs_context_parse_param()
1126 cifs_errorf(fc, "OOM when copying UNC string\n"); in smb3_fs_context_parse_param()
1146 cifs_errorf(fc, "OOM when copying username string\n"); in smb3_fs_context_parse_param()
1158 cifs_errorf(fc, "OOM when copying password string\n"); in smb3_fs_context_parse_param()
1185 cifs_errorf(fc, "OOM when copying domainname string\n"); in smb3_fs_context_parse_param()
1209 cifs_errorf(fc, "OOM when copying iocharset string\n"); in smb3_fs_context_parse_param()
1275 if (cifs_parse_smb_version(fc, param->string, ctx, is_smb3) != 0) in smb3_fs_context_parse_param()
1280 if (cifs_parse_security_flavors(fc, param->string, ctx) != 0) in smb3_fs_context_parse_param()
1284 if (cifs_parse_cache_flavor(fc, param->string, ctx) != 0) in smb3_fs_context_parse_param()
1289 cifs_errorf(fc, "Witness support needs CONFIG_CIFS_SWN_UPCALL config option\n"); in smb3_fs_context_parse_param()
1397 cifs_errorf(fc, "FS-Cache support needs CONFIG_CIFS_FSCACHE kernel config option set\n"); in smb3_fs_context_parse_param()
1418 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1424 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1435 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1462 int smb3_init_fs_context(struct fs_context *fc) in smb3_init_fs_context() argument
1549 fc->fs_private = ctx; in smb3_init_fs_context()
1550 fc->ops = &smb3_fs_context_ops; in smb3_init_fs_context()