Lines Matching defs:fc
215 cifs_parse_security_flavors(struct fs_context *fc, char *value, struct smb3_fs_context *ctx)
229 cifs_errorf(fc, "sec=krb5p is not supported. Use sec=krb5,seal instead\n");
255 cifs_errorf(fc, "bad security option: %s\n", value);
263 cifs_parse_upcall_target(struct fs_context *fc, char *value, struct smb3_fs_context *ctx)
278 cifs_errorf(fc, "bad upcall target: %s\n", value);
295 cifs_parse_cache_flavor(struct fs_context *fc, char *value, struct smb3_fs_context *ctx)
331 cifs_errorf(fc, "bad cache= option: %s\n", value);
345 static int parse_reparse_flavor(struct fs_context *fc, char *value,
364 cifs_errorf(fc, "bad reparse= option: %s\n", value);
382 static int parse_symlink_flavor(struct fs_context *fc, char *value,
413 cifs_errorf(fc, "bad symlink= option: %s\n", value);
468 cifs_parse_smb_version(struct fs_context *fc, char *value, struct smb3_fs_context *ctx, bool is_smb3)
476 cifs_errorf(fc, "mount with legacy dialect disabled\n");
480 cifs_errorf(fc, "vers=1.0 (cifs) not permitted when mounting with smb3\n");
483 cifs_errorf(fc, "Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers\n");
489 cifs_errorf(fc, "mount with legacy dialect disabled\n");
493 cifs_errorf(fc, "vers=2.0 not permitted when mounting with smb3\n");
501 cifs_errorf(fc, "vers=1.0 (cifs) mount not permitted when legacy dialects disabled\n");
504 cifs_errorf(fc, "vers=2.0 mount not permitted when legacy dialects disabled\n");
532 cifs_errorf(fc, "Unknown vers= option specified: %s\n", value);
712 static void smb3_fs_context_free(struct fs_context *fc);
713 static int smb3_fs_context_parse_param(struct fs_context *fc,
715 static int smb3_fs_context_parse_monolithic(struct fs_context *fc,
717 static int smb3_get_tree(struct fs_context *fc);
718 static int smb3_reconfigure(struct fs_context *fc);
740 static int smb3_fs_context_parse_monolithic(struct fs_context *fc,
749 ret = security_sb_eat_lsm_opts(options, &fc->security);
783 ret = vfs_parse_fs_string(fc, key, value, len);
794 static int smb3_fs_context_validate(struct fs_context *fc)
796 struct smb3_fs_context *ctx = smb3_fc2context(fc);
799 cifs_errorf(fc, "SMB Direct requires Version >=3.0\n");
806 cifs_errorf(fc, "Multiuser mounts require kernels with CONFIG_KEYS enabled\n");
816 cifs_errorf(fc, "CIFS mount error: No usable UNC path provided in device string!\n");
822 cifs_errorf(fc, "Malformed UNC. Unable to find share name.\n");
867 static int smb3_get_tree_common(struct fs_context *fc)
869 struct smb3_fs_context *ctx = smb3_fc2context(fc);
873 root = cifs_smb3_do_mount(fc->fs_type, 0, ctx);
877 fc->root = root;
885 static int smb3_get_tree(struct fs_context *fc)
887 int err = smb3_fs_context_validate(fc);
893 ret = smb3_get_tree_common(fc);
898 static void smb3_fs_context_free(struct fs_context *fc)
900 struct smb3_fs_context *ctx = smb3_fc2context(fc);
909 static int smb3_verify_reconfigure_ctx(struct fs_context *fc,
914 cifs_errorf(fc, "can not change posixpaths during remount\n");
918 cifs_errorf(fc, "can not change sec during remount\n");
922 cifs_errorf(fc, "can not change multiuser during remount\n");
927 cifs_errorf(fc, "can not change UNC during remount\n");
932 cifs_errorf(fc, "can not change username during remount\n");
938 cifs_errorf(fc,
942 cifs_errorf(fc,
949 cifs_errorf(fc, "can not change domainname during remount\n");
953 cifs_errorf(fc, "can not change workstation_name during remount\n");
958 cifs_errorf(fc, "can not change nodename during remount\n");
963 cifs_errorf(fc, "can not change iocharset during remount\n");
1008 static int smb3_reconfigure(struct fs_context *fc)
1010 struct smb3_fs_context *ctx = smb3_fc2context(fc);
1011 struct dentry *root = fc->root;
1021 rc = smb3_verify_reconfigure_ctx(fc, ctx, cifs_sb->ctx, need_recon);
1113 static int smb3_fs_context_parse_param(struct fs_context *fc,
1117 struct smb3_fs_context *ctx = smb3_fc2context(fc);
1119 bool is_smb3 = !strcmp(fc->fs_type->name, "smb3");
1142 opt = fs_parse(fc, smb3_fs_parameters, param, &result);
1150 cifs_errorf(fc, "CONFIG_CIFS_COMPRESSION kernel config option is unset\n");
1300 cifs_errorf(fc, "%s: Invalid blocksize\n",
1321 cifs_errorf(fc, "%s: Invalid rasize %d vs. %d\n",
1348 cifs_errorf(fc, "acregmax too large\n");
1355 cifs_errorf(fc, "acdirmax too large\n");
1362 cifs_errorf(fc, "timeout too large\n");
1367 cifs_errorf(fc, "actimeo ignored since acregmax or acdirmax specified\n");
1374 cifs_errorf(fc, "closetimeo too large\n");
1387 cifs_errorf(fc, "%s: Invalid max_credits value\n",
1395 cifs_errorf(fc, "%s: Invalid max_channels value, needs to be 1-%d\n",
1406 cifs_errorf(fc, "%s: Invalid max_cached_dirs, needs to be 1 or more\n",
1415 cifs_errorf(fc, "Invalid handle cache timeout, longer than 16 minutes\n");
1426 cifs_errorf(fc, "Unable to allocate memory for devname\n");
1429 cifs_errorf(fc, "Malformed UNC in devname\n");
1432 cifs_errorf(fc, "Unknown error parsing devname\n");
1438 cifs_errorf(fc, "OOM when copying UNC string\n");
1441 fc->source = kstrdup(ctx->source, GFP_KERNEL);
1442 if (fc->source == NULL) {
1443 cifs_errorf(fc, "OOM when copying UNC string\n");
1465 cifs_errorf(fc, "OOM when copying username string\n");
1477 cifs_errorf(fc, "OOM when copying password string\n");
1489 cifs_errorf(fc, "OOM when copying password2 string\n");
1516 cifs_errorf(fc, "OOM when copying domainname string\n");
1540 cifs_errorf(fc, "OOM when copying iocharset string\n");
1606 if (cifs_parse_smb_version(fc, param->string, ctx, is_smb3) != 0)
1611 if (cifs_parse_security_flavors(fc, param->string, ctx) != 0)
1615 if (cifs_parse_upcall_target(fc, param->string, ctx) != 0)
1619 if (cifs_parse_cache_flavor(fc, param->string, ctx) != 0)
1624 cifs_errorf(fc, "Witness support needs CONFIG_CIFS_SWN_UPCALL config option\n");
1732 cifs_errorf(fc, "FS-Cache support needs CONFIG_CIFS_FSCACHE kernel config option set\n");
1753 cifs_errorf(fc, "persistenthandles mount options conflict\n");
1759 cifs_errorf(fc, "persistenthandles mount options conflict\n");
1770 cifs_errorf(fc, "persistenthandles mount options conflict\n");
1789 if (parse_reparse_flavor(fc, param->string, ctx))
1796 if (parse_symlink_flavor(fc, param->string, ctx))
1801 cifs_errorf(fc, "symlinkroot mount options must be absolute path\n");
1813 cifs_errorf(fc, "multiuser mount option not supported with upcalltarget set as 'mount'\n");
1852 int smb3_init_fs_context(struct fs_context *fc)
1938 fc->fs_private = ctx;
1939 fc->ops = &smb3_fs_context_ops;