Lines Matching refs:fc

199 cifs_parse_security_flavors(struct fs_context *fc, char *value, struct smb3_fs_context *ctx)  in cifs_parse_security_flavors()  argument
213 cifs_errorf(fc, "sec=krb5p is not supported!\n"); in cifs_parse_security_flavors()
239 cifs_errorf(fc, "bad security option: %s\n", value); in cifs_parse_security_flavors()
256 cifs_parse_cache_flavor(struct fs_context *fc, char *value, struct smb3_fs_context *ctx) in cifs_parse_cache_flavor() argument
292 cifs_errorf(fc, "bad cache= option: %s\n", value); in cifs_parse_cache_flavor()
341 cifs_parse_smb_version(struct fs_context *fc, char *value, struct smb3_fs_context *ctx, bool is_smb… in cifs_parse_smb_version() argument
349 cifs_errorf(fc, "mount with legacy dialect disabled\n"); in cifs_parse_smb_version()
353 cifs_errorf(fc, "vers=1.0 (cifs) not permitted when mounting with smb3\n"); in cifs_parse_smb_version()
356 …cifs_errorf(fc, "Use of the less secure dialect vers=1.0 is not recommended unless required for ac… in cifs_parse_smb_version()
362 cifs_errorf(fc, "mount with legacy dialect disabled\n"); in cifs_parse_smb_version()
366 cifs_errorf(fc, "vers=2.0 not permitted when mounting with smb3\n"); in cifs_parse_smb_version()
374 cifs_errorf(fc, "vers=1.0 (cifs) mount not permitted when legacy dialects disabled\n"); in cifs_parse_smb_version()
377 cifs_errorf(fc, "vers=2.0 mount not permitted when legacy dialects disabled\n"); in cifs_parse_smb_version()
405 cifs_errorf(fc, "Unknown vers= option specified: %s\n", value); in cifs_parse_smb_version()
585 static void smb3_fs_context_free(struct fs_context *fc);
586 static int smb3_fs_context_parse_param(struct fs_context *fc,
588 static int smb3_fs_context_parse_monolithic(struct fs_context *fc,
590 static int smb3_get_tree(struct fs_context *fc);
591 static int smb3_reconfigure(struct fs_context *fc);
613 static int smb3_fs_context_parse_monolithic(struct fs_context *fc, in smb3_fs_context_parse_monolithic() argument
622 ret = security_sb_eat_lsm_opts(options, &fc->security); in smb3_fs_context_parse_monolithic()
656 ret = vfs_parse_fs_string(fc, key, value, len); in smb3_fs_context_parse_monolithic()
667 static int smb3_fs_context_validate(struct fs_context *fc) in smb3_fs_context_validate() argument
669 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_validate()
672 cifs_errorf(fc, "SMB Direct requires Version >=3.0\n"); in smb3_fs_context_validate()
679 cifs_errorf(fc, "Multiuser mounts require kernels with CONFIG_KEYS enabled\n"); in smb3_fs_context_validate()
689 cifs_errorf(fc, "CIFS mount error: No usable UNC path provided in device string!\n"); in smb3_fs_context_validate()
695 cifs_errorf(fc, "Malformed UNC. Unable to find share name.\n"); in smb3_fs_context_validate()
730 static int smb3_get_tree_common(struct fs_context *fc) in smb3_get_tree_common() argument
732 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_get_tree_common()
736 root = cifs_smb3_do_mount(fc->fs_type, 0, ctx); in smb3_get_tree_common()
740 fc->root = root; in smb3_get_tree_common()
748 static int smb3_get_tree(struct fs_context *fc) in smb3_get_tree() argument
750 int err = smb3_fs_context_validate(fc); in smb3_get_tree()
756 ret = smb3_get_tree_common(fc); in smb3_get_tree()
761 static void smb3_fs_context_free(struct fs_context *fc) in smb3_fs_context_free() argument
763 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_free()
772 static int smb3_verify_reconfigure_ctx(struct fs_context *fc, in smb3_verify_reconfigure_ctx() argument
777 cifs_errorf(fc, "can not change posixpaths during remount\n"); in smb3_verify_reconfigure_ctx()
781 cifs_errorf(fc, "can not change sec during remount\n"); in smb3_verify_reconfigure_ctx()
785 cifs_errorf(fc, "can not change multiuser during remount\n"); in smb3_verify_reconfigure_ctx()
790 cifs_errorf(fc, "can not change UNC during remount\n"); in smb3_verify_reconfigure_ctx()
795 cifs_errorf(fc, "can not change username during remount\n"); in smb3_verify_reconfigure_ctx()
800 cifs_errorf(fc, "can not change password during remount\n"); in smb3_verify_reconfigure_ctx()
805 cifs_errorf(fc, "can not change domainname during remount\n"); in smb3_verify_reconfigure_ctx()
809 cifs_errorf(fc, "can not change workstation_name during remount\n"); in smb3_verify_reconfigure_ctx()
814 cifs_errorf(fc, "can not change nodename during remount\n"); in smb3_verify_reconfigure_ctx()
819 cifs_errorf(fc, "can not change iocharset during remount\n"); in smb3_verify_reconfigure_ctx()
840 static int smb3_reconfigure(struct fs_context *fc) in smb3_reconfigure() argument
842 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_reconfigure()
843 struct dentry *root = fc->root; in smb3_reconfigure()
847 rc = smb3_verify_reconfigure_ctx(fc, ctx, cifs_sb->ctx); in smb3_reconfigure()
883 static int smb3_fs_context_parse_param(struct fs_context *fc, in smb3_fs_context_parse_param() argument
887 struct smb3_fs_context *ctx = smb3_fc2context(fc); in smb3_fs_context_parse_param()
889 bool is_smb3 = !strcmp(fc->fs_type->name, "smb3"); in smb3_fs_context_parse_param()
911 opt = fs_parse(fc, smb3_fs_parameters, param, &result); in smb3_fs_context_parse_param()
1076 cifs_errorf(fc, "%s: Invalid blocksize\n", in smb3_fs_context_parse_param()
1097 cifs_errorf(fc, "%s: Invalid rasize %d vs. %d\n", in smb3_fs_context_parse_param()
1114 cifs_errorf(fc, "acregmax too large\n"); in smb3_fs_context_parse_param()
1121 cifs_errorf(fc, "acdirmax too large\n"); in smb3_fs_context_parse_param()
1127 cifs_errorf(fc, "timeout too large\n"); in smb3_fs_context_parse_param()
1132 cifs_errorf(fc, "actimeo ignored since acregmax or acdirmax specified\n"); in smb3_fs_context_parse_param()
1140 cifs_errorf(fc, "closetimeo too large\n"); in smb3_fs_context_parse_param()
1152 cifs_errorf(fc, "%s: Invalid max_credits value\n", in smb3_fs_context_parse_param()
1160 cifs_errorf(fc, "%s: Invalid max_channels value, needs to be 1-%d\n", in smb3_fs_context_parse_param()
1171 cifs_errorf(fc, "%s: Invalid max_cached_dirs, needs to be 1 or more\n", in smb3_fs_context_parse_param()
1180 cifs_errorf(fc, "Invalid handle cache timeout, longer than 16 minutes\n"); in smb3_fs_context_parse_param()
1191 cifs_errorf(fc, "Unable to allocate memory for devname\n"); in smb3_fs_context_parse_param()
1194 cifs_errorf(fc, "Malformed UNC in devname\n"); in smb3_fs_context_parse_param()
1197 cifs_errorf(fc, "Unknown error parsing devname\n"); in smb3_fs_context_parse_param()
1203 cifs_errorf(fc, "OOM when copying UNC string\n"); in smb3_fs_context_parse_param()
1206 fc->source = kstrdup(ctx->source, GFP_KERNEL); in smb3_fs_context_parse_param()
1207 if (fc->source == NULL) { in smb3_fs_context_parse_param()
1208 cifs_errorf(fc, "OOM when copying UNC string\n"); in smb3_fs_context_parse_param()
1230 cifs_errorf(fc, "OOM when copying username string\n"); in smb3_fs_context_parse_param()
1242 cifs_errorf(fc, "OOM when copying password string\n"); in smb3_fs_context_parse_param()
1269 cifs_errorf(fc, "OOM when copying domainname string\n"); in smb3_fs_context_parse_param()
1293 cifs_errorf(fc, "OOM when copying iocharset string\n"); in smb3_fs_context_parse_param()
1359 if (cifs_parse_smb_version(fc, param->string, ctx, is_smb3) != 0) in smb3_fs_context_parse_param()
1364 if (cifs_parse_security_flavors(fc, param->string, ctx) != 0) in smb3_fs_context_parse_param()
1368 if (cifs_parse_cache_flavor(fc, param->string, ctx) != 0) in smb3_fs_context_parse_param()
1373 cifs_errorf(fc, "Witness support needs CONFIG_CIFS_SWN_UPCALL config option\n"); in smb3_fs_context_parse_param()
1481 cifs_errorf(fc, "FS-Cache support needs CONFIG_CIFS_FSCACHE kernel config option set\n"); in smb3_fs_context_parse_param()
1502 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1508 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1519 cifs_errorf(fc, "persistenthandles mount options conflict\n"); in smb3_fs_context_parse_param()
1548 int smb3_init_fs_context(struct fs_context *fc) in smb3_init_fs_context() argument
1629 fc->fs_private = ctx; in smb3_init_fs_context()
1630 fc->ops = &smb3_fs_context_ops; in smb3_init_fs_context()