Lines Matching refs:fsopt
257 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_old_source() local
267 fsopt->new_dev_syntax = false; in ceph_parse_old_source()
278 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_new_source() local
308 if (!namespace_equals(fsopt, fs_name_start, len)) in ceph_parse_new_source()
310 kfree(fsopt->mds_namespace); in ceph_parse_new_source()
311 fsopt->mds_namespace = kstrndup(fs_name_start, len, GFP_KERNEL); in ceph_parse_new_source()
312 if (!fsopt->mds_namespace) in ceph_parse_new_source()
314 dout("file system (mds namespace) '%s'\n", fsopt->mds_namespace); in ceph_parse_new_source()
316 fsopt->new_dev_syntax = true; in ceph_parse_new_source()
341 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_source() local
355 kfree(fsopt->server_path); in ceph_parse_source()
356 fsopt->server_path = kstrdup(dev_name_end, GFP_KERNEL); in ceph_parse_source()
357 if (!fsopt->server_path) in ceph_parse_source()
360 canonicalize_path(fsopt->server_path); in ceph_parse_source()
370 if (fsopt->server_path) in ceph_parse_source()
371 dout("server path '%s'\n", fsopt->server_path); in ceph_parse_source()
393 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_mon_addr() local
395 kfree(fsopt->mon_addr); in ceph_parse_mon_addr()
396 fsopt->mon_addr = param->string; in ceph_parse_mon_addr()
399 return ceph_parse_mon_ips(fsopt->mon_addr, strlen(fsopt->mon_addr), in ceph_parse_mon_addr()
407 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_mount_param() local
425 kfree(fsopt->snapdir_name); in ceph_parse_mount_param()
426 fsopt->snapdir_name = param->string; in ceph_parse_mount_param()
430 if (!namespace_equals(fsopt, param->string, strlen(param->string))) in ceph_parse_mount_param()
432 kfree(fsopt->mds_namespace); in ceph_parse_mount_param()
433 fsopt->mds_namespace = param->string; in ceph_parse_mount_param()
439 fsopt->flags &= ~CEPH_MOUNT_OPT_CLEANRECOVER; in ceph_parse_mount_param()
441 fsopt->flags |= CEPH_MOUNT_OPT_CLEANRECOVER; in ceph_parse_mount_param()
455 fsopt->wsize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param()
461 fsopt->rsize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param()
464 fsopt->rasize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param()
469 fsopt->caps_wanted_delay_min = result.uint_32; in ceph_parse_mount_param()
474 fsopt->caps_wanted_delay_max = result.uint_32; in ceph_parse_mount_param()
479 fsopt->caps_max = result.int_32; in ceph_parse_mount_param()
484 fsopt->max_readdir = result.uint_32; in ceph_parse_mount_param()
489 fsopt->max_readdir_bytes = result.uint_32; in ceph_parse_mount_param()
494 fsopt->congestion_kb = result.uint_32; in ceph_parse_mount_param()
498 fsopt->flags |= CEPH_MOUNT_OPT_DIRSTAT; in ceph_parse_mount_param()
500 fsopt->flags &= ~CEPH_MOUNT_OPT_DIRSTAT; in ceph_parse_mount_param()
504 fsopt->flags |= CEPH_MOUNT_OPT_RBYTES; in ceph_parse_mount_param()
506 fsopt->flags &= ~CEPH_MOUNT_OPT_RBYTES; in ceph_parse_mount_param()
510 fsopt->flags &= ~CEPH_MOUNT_OPT_NOASYNCREADDIR; in ceph_parse_mount_param()
512 fsopt->flags |= CEPH_MOUNT_OPT_NOASYNCREADDIR; in ceph_parse_mount_param()
516 fsopt->flags |= CEPH_MOUNT_OPT_DCACHE; in ceph_parse_mount_param()
518 fsopt->flags &= ~CEPH_MOUNT_OPT_DCACHE; in ceph_parse_mount_param()
522 fsopt->flags |= CEPH_MOUNT_OPT_INO32; in ceph_parse_mount_param()
524 fsopt->flags &= ~CEPH_MOUNT_OPT_INO32; in ceph_parse_mount_param()
529 kfree(fsopt->fscache_uniq); in ceph_parse_mount_param()
530 fsopt->fscache_uniq = NULL; in ceph_parse_mount_param()
532 fsopt->flags &= ~CEPH_MOUNT_OPT_FSCACHE; in ceph_parse_mount_param()
534 fsopt->flags |= CEPH_MOUNT_OPT_FSCACHE; in ceph_parse_mount_param()
535 fsopt->fscache_uniq = param->string; in ceph_parse_mount_param()
544 fsopt->flags &= ~CEPH_MOUNT_OPT_NOPOOLPERM; in ceph_parse_mount_param()
546 fsopt->flags |= CEPH_MOUNT_OPT_NOPOOLPERM; in ceph_parse_mount_param()
550 fsopt->flags &= ~CEPH_MOUNT_OPT_MOUNTWAIT; in ceph_parse_mount_param()
552 fsopt->flags |= CEPH_MOUNT_OPT_MOUNTWAIT; in ceph_parse_mount_param()
556 fsopt->flags &= ~CEPH_MOUNT_OPT_NOQUOTADF; in ceph_parse_mount_param()
558 fsopt->flags |= CEPH_MOUNT_OPT_NOQUOTADF; in ceph_parse_mount_param()
562 fsopt->flags &= ~CEPH_MOUNT_OPT_NOCOPYFROM; in ceph_parse_mount_param()
564 fsopt->flags |= CEPH_MOUNT_OPT_NOCOPYFROM; in ceph_parse_mount_param()
579 fsopt->flags &= ~CEPH_MOUNT_OPT_ASYNC_DIROPS; in ceph_parse_mount_param()
581 fsopt->flags |= CEPH_MOUNT_OPT_ASYNC_DIROPS; in ceph_parse_mount_param()
585 fsopt->flags |= CEPH_MOUNT_OPT_NOPAGECACHE; in ceph_parse_mount_param()
587 fsopt->flags &= ~CEPH_MOUNT_OPT_NOPAGECACHE; in ceph_parse_mount_param()
591 fsopt->flags &= ~CEPH_MOUNT_OPT_SPARSEREAD; in ceph_parse_mount_param()
593 fsopt->flags |= CEPH_MOUNT_OPT_SPARSEREAD; in ceph_parse_mount_param()
597 fscrypt_free_dummy_policy(&fsopt->dummy_enc_policy); in ceph_parse_mount_param()
599 &fsopt->dummy_enc_policy); in ceph_parse_mount_param()
691 struct ceph_mount_options *fsopt = fsc->mount_options; in ceph_show_options() local
707 if (fsopt->flags & CEPH_MOUNT_OPT_DIRSTAT) in ceph_show_options()
709 if ((fsopt->flags & CEPH_MOUNT_OPT_RBYTES)) in ceph_show_options()
711 if (fsopt->flags & CEPH_MOUNT_OPT_NOASYNCREADDIR) in ceph_show_options()
713 if ((fsopt->flags & CEPH_MOUNT_OPT_DCACHE) == 0) in ceph_show_options()
715 if (fsopt->flags & CEPH_MOUNT_OPT_INO32) in ceph_show_options()
717 if (fsopt->flags & CEPH_MOUNT_OPT_FSCACHE) { in ceph_show_options()
718 seq_show_option(m, "fsc", fsopt->fscache_uniq); in ceph_show_options()
720 if (fsopt->flags & CEPH_MOUNT_OPT_NOPOOLPERM) in ceph_show_options()
722 if (fsopt->flags & CEPH_MOUNT_OPT_NOQUOTADF) in ceph_show_options()
732 if ((fsopt->flags & CEPH_MOUNT_OPT_NOCOPYFROM) == 0) in ceph_show_options()
736 if (fsopt->mds_namespace && !fsopt->new_dev_syntax) in ceph_show_options()
737 seq_show_option(m, "mds_namespace", fsopt->mds_namespace); in ceph_show_options()
739 if (fsopt->mon_addr) in ceph_show_options()
740 seq_printf(m, ",mon_addr=%s", fsopt->mon_addr); in ceph_show_options()
742 if (fsopt->flags & CEPH_MOUNT_OPT_CLEANRECOVER) in ceph_show_options()
745 if (!(fsopt->flags & CEPH_MOUNT_OPT_ASYNC_DIROPS)) in ceph_show_options()
747 if (fsopt->flags & CEPH_MOUNT_OPT_NOPAGECACHE) in ceph_show_options()
749 if (fsopt->flags & CEPH_MOUNT_OPT_SPARSEREAD) in ceph_show_options()
754 if (fsopt->wsize != CEPH_MAX_WRITE_SIZE) in ceph_show_options()
755 seq_printf(m, ",wsize=%u", fsopt->wsize); in ceph_show_options()
756 if (fsopt->rsize != CEPH_MAX_READ_SIZE) in ceph_show_options()
757 seq_printf(m, ",rsize=%u", fsopt->rsize); in ceph_show_options()
758 if (fsopt->rasize != CEPH_RASIZE_DEFAULT) in ceph_show_options()
759 seq_printf(m, ",rasize=%u", fsopt->rasize); in ceph_show_options()
760 if (fsopt->congestion_kb != default_congestion_kb()) in ceph_show_options()
761 seq_printf(m, ",write_congestion_kb=%u", fsopt->congestion_kb); in ceph_show_options()
762 if (fsopt->caps_max) in ceph_show_options()
763 seq_printf(m, ",caps_max=%d", fsopt->caps_max); in ceph_show_options()
764 if (fsopt->caps_wanted_delay_min != CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT) in ceph_show_options()
766 fsopt->caps_wanted_delay_min); in ceph_show_options()
767 if (fsopt->caps_wanted_delay_max != CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT) in ceph_show_options()
769 fsopt->caps_wanted_delay_max); in ceph_show_options()
770 if (fsopt->max_readdir != CEPH_MAX_READDIR_DEFAULT) in ceph_show_options()
771 seq_printf(m, ",readdir_max_entries=%u", fsopt->max_readdir); in ceph_show_options()
772 if (fsopt->max_readdir_bytes != CEPH_MAX_READDIR_BYTES_DEFAULT) in ceph_show_options()
773 seq_printf(m, ",readdir_max_bytes=%u", fsopt->max_readdir_bytes); in ceph_show_options()
774 if (strcmp(fsopt->snapdir_name, CEPH_SNAPDIRNAME_DEFAULT)) in ceph_show_options()
775 seq_show_option(m, "snapdirname", fsopt->snapdir_name); in ceph_show_options()
806 static struct ceph_fs_client *create_fs_client(struct ceph_mount_options *fsopt, in create_fs_client() argument
828 if (!fsopt->mds_namespace) { in create_fs_client()
836 fsc->mount_options = fsopt; in create_fs_client()
875 destroy_mount_options(fsopt); in create_fs_client()
1096 struct ceph_mount_options *fsopt) in ceph_apply_test_dummy_encryption() argument
1100 if (!fscrypt_is_dummy_policy_set(&fsopt->dummy_enc_policy)) in ceph_apply_test_dummy_encryption()
1106 if (fscrypt_dummy_policies_equal(&fsopt->dummy_enc_policy, in ceph_apply_test_dummy_encryption()
1115 if (fscrypt_dummy_policies_equal(&fsopt->dummy_enc_policy, in ceph_apply_test_dummy_encryption()
1122 fsc->fsc_dummy_enc_policy = fsopt->dummy_enc_policy; in ceph_apply_test_dummy_encryption()
1123 memset(&fsopt->dummy_enc_policy, 0, sizeof(fsopt->dummy_enc_policy)); in ceph_apply_test_dummy_encryption()
1131 struct ceph_mount_options *fsopt) in ceph_apply_test_dummy_encryption() argument
1234 struct ceph_mount_options *fsopt = new->mount_options; in ceph_compare_super() local
1241 if (compare_mount_options(fsopt, opt, fsc)) { in ceph_compare_super()
1294 struct ceph_mount_options *fsopt = pctx->opts; in ceph_get_tree() local
1306 if (fsopt->new_dev_syntax && !fsopt->mon_addr) in ceph_get_tree()
1387 struct ceph_mount_options *fsopt = pctx->opts; in ceph_reconfigure_fc() local
1391 err = ceph_apply_test_dummy_encryption(sb, fc, fsopt); in ceph_reconfigure_fc()
1395 if (fsopt->flags & CEPH_MOUNT_OPT_ASYNC_DIROPS) in ceph_reconfigure_fc()
1400 if (fsopt->flags & CEPH_MOUNT_OPT_SPARSEREAD) in ceph_reconfigure_fc()
1405 if (strcmp_null(fsc->mount_options->mon_addr, fsopt->mon_addr)) { in ceph_reconfigure_fc()
1407 fsc->mount_options->mon_addr = fsopt->mon_addr; in ceph_reconfigure_fc()
1408 fsopt->mon_addr = NULL; in ceph_reconfigure_fc()
1430 struct ceph_mount_options *fsopt; in ceph_init_fs_context() local
1444 fsopt = pctx->opts; in ceph_init_fs_context()
1445 fsopt->flags = CEPH_MOUNT_OPT_DEFAULT; in ceph_init_fs_context()
1447 fsopt->wsize = CEPH_MAX_WRITE_SIZE; in ceph_init_fs_context()
1448 fsopt->rsize = CEPH_MAX_READ_SIZE; in ceph_init_fs_context()
1449 fsopt->rasize = CEPH_RASIZE_DEFAULT; in ceph_init_fs_context()
1450 fsopt->snapdir_name = kstrdup(CEPH_SNAPDIRNAME_DEFAULT, GFP_KERNEL); in ceph_init_fs_context()
1451 if (!fsopt->snapdir_name) in ceph_init_fs_context()
1454 fsopt->caps_wanted_delay_min = CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT; in ceph_init_fs_context()
1455 fsopt->caps_wanted_delay_max = CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT; in ceph_init_fs_context()
1456 fsopt->max_readdir = CEPH_MAX_READDIR_DEFAULT; in ceph_init_fs_context()
1457 fsopt->max_readdir_bytes = CEPH_MAX_READDIR_BYTES_DEFAULT; in ceph_init_fs_context()
1458 fsopt->congestion_kb = default_congestion_kb(); in ceph_init_fs_context()