Lines Matching refs:fsopt
241 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_source() local
255 kfree(fsopt->server_path); in ceph_parse_source()
256 fsopt->server_path = kstrdup(dev_name_end, GFP_KERNEL); in ceph_parse_source()
257 if (!fsopt->server_path) in ceph_parse_source()
260 canonicalize_path(fsopt->server_path); in ceph_parse_source()
270 if (fsopt->server_path) in ceph_parse_source()
271 dout("server path '%s'\n", fsopt->server_path); in ceph_parse_source()
287 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_mount_param() local
303 kfree(fsopt->snapdir_name); in ceph_parse_mount_param()
304 fsopt->snapdir_name = param->string; in ceph_parse_mount_param()
308 kfree(fsopt->mds_namespace); in ceph_parse_mount_param()
309 fsopt->mds_namespace = param->string; in ceph_parse_mount_param()
315 fsopt->flags &= ~CEPH_MOUNT_OPT_CLEANRECOVER; in ceph_parse_mount_param()
317 fsopt->flags |= CEPH_MOUNT_OPT_CLEANRECOVER; in ceph_parse_mount_param()
329 fsopt->wsize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param()
335 fsopt->rsize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param()
338 fsopt->rasize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param()
343 fsopt->caps_wanted_delay_min = result.uint_32; in ceph_parse_mount_param()
348 fsopt->caps_wanted_delay_max = result.uint_32; in ceph_parse_mount_param()
353 fsopt->caps_max = result.int_32; in ceph_parse_mount_param()
358 fsopt->max_readdir = result.uint_32; in ceph_parse_mount_param()
363 fsopt->max_readdir_bytes = result.uint_32; in ceph_parse_mount_param()
368 fsopt->congestion_kb = result.uint_32; in ceph_parse_mount_param()
372 fsopt->flags |= CEPH_MOUNT_OPT_DIRSTAT; in ceph_parse_mount_param()
374 fsopt->flags &= ~CEPH_MOUNT_OPT_DIRSTAT; in ceph_parse_mount_param()
378 fsopt->flags |= CEPH_MOUNT_OPT_RBYTES; in ceph_parse_mount_param()
380 fsopt->flags &= ~CEPH_MOUNT_OPT_RBYTES; in ceph_parse_mount_param()
384 fsopt->flags &= ~CEPH_MOUNT_OPT_NOASYNCREADDIR; in ceph_parse_mount_param()
386 fsopt->flags |= CEPH_MOUNT_OPT_NOASYNCREADDIR; in ceph_parse_mount_param()
390 fsopt->flags |= CEPH_MOUNT_OPT_DCACHE; in ceph_parse_mount_param()
392 fsopt->flags &= ~CEPH_MOUNT_OPT_DCACHE; in ceph_parse_mount_param()
396 fsopt->flags |= CEPH_MOUNT_OPT_INO32; in ceph_parse_mount_param()
398 fsopt->flags &= ~CEPH_MOUNT_OPT_INO32; in ceph_parse_mount_param()
403 kfree(fsopt->fscache_uniq); in ceph_parse_mount_param()
404 fsopt->fscache_uniq = NULL; in ceph_parse_mount_param()
406 fsopt->flags &= ~CEPH_MOUNT_OPT_FSCACHE; in ceph_parse_mount_param()
408 fsopt->flags |= CEPH_MOUNT_OPT_FSCACHE; in ceph_parse_mount_param()
409 fsopt->fscache_uniq = param->string; in ceph_parse_mount_param()
418 fsopt->flags &= ~CEPH_MOUNT_OPT_NOPOOLPERM; in ceph_parse_mount_param()
420 fsopt->flags |= CEPH_MOUNT_OPT_NOPOOLPERM; in ceph_parse_mount_param()
424 fsopt->flags &= ~CEPH_MOUNT_OPT_MOUNTWAIT; in ceph_parse_mount_param()
426 fsopt->flags |= CEPH_MOUNT_OPT_MOUNTWAIT; in ceph_parse_mount_param()
430 fsopt->flags &= ~CEPH_MOUNT_OPT_NOQUOTADF; in ceph_parse_mount_param()
432 fsopt->flags |= CEPH_MOUNT_OPT_NOQUOTADF; in ceph_parse_mount_param()
436 fsopt->flags &= ~CEPH_MOUNT_OPT_NOCOPYFROM; in ceph_parse_mount_param()
438 fsopt->flags |= CEPH_MOUNT_OPT_NOCOPYFROM; in ceph_parse_mount_param()
453 fsopt->flags &= ~CEPH_MOUNT_OPT_ASYNC_DIROPS; in ceph_parse_mount_param()
455 fsopt->flags |= CEPH_MOUNT_OPT_ASYNC_DIROPS; in ceph_parse_mount_param()
530 struct ceph_mount_options *fsopt = fsc->mount_options; in ceph_show_options() local
546 if (fsopt->flags & CEPH_MOUNT_OPT_DIRSTAT) in ceph_show_options()
548 if ((fsopt->flags & CEPH_MOUNT_OPT_RBYTES)) in ceph_show_options()
550 if (fsopt->flags & CEPH_MOUNT_OPT_NOASYNCREADDIR) in ceph_show_options()
552 if ((fsopt->flags & CEPH_MOUNT_OPT_DCACHE) == 0) in ceph_show_options()
554 if (fsopt->flags & CEPH_MOUNT_OPT_INO32) in ceph_show_options()
556 if (fsopt->flags & CEPH_MOUNT_OPT_FSCACHE) { in ceph_show_options()
557 seq_show_option(m, "fsc", fsopt->fscache_uniq); in ceph_show_options()
559 if (fsopt->flags & CEPH_MOUNT_OPT_NOPOOLPERM) in ceph_show_options()
561 if (fsopt->flags & CEPH_MOUNT_OPT_NOQUOTADF) in ceph_show_options()
571 if ((fsopt->flags & CEPH_MOUNT_OPT_NOCOPYFROM) == 0) in ceph_show_options()
574 if (fsopt->mds_namespace) in ceph_show_options()
575 seq_show_option(m, "mds_namespace", fsopt->mds_namespace); in ceph_show_options()
577 if (fsopt->flags & CEPH_MOUNT_OPT_CLEANRECOVER) in ceph_show_options()
580 if (fsopt->flags & CEPH_MOUNT_OPT_ASYNC_DIROPS) in ceph_show_options()
583 if (fsopt->wsize != CEPH_MAX_WRITE_SIZE) in ceph_show_options()
584 seq_printf(m, ",wsize=%u", fsopt->wsize); in ceph_show_options()
585 if (fsopt->rsize != CEPH_MAX_READ_SIZE) in ceph_show_options()
586 seq_printf(m, ",rsize=%u", fsopt->rsize); in ceph_show_options()
587 if (fsopt->rasize != CEPH_RASIZE_DEFAULT) in ceph_show_options()
588 seq_printf(m, ",rasize=%u", fsopt->rasize); in ceph_show_options()
589 if (fsopt->congestion_kb != default_congestion_kb()) in ceph_show_options()
590 seq_printf(m, ",write_congestion_kb=%u", fsopt->congestion_kb); in ceph_show_options()
591 if (fsopt->caps_max) in ceph_show_options()
592 seq_printf(m, ",caps_max=%d", fsopt->caps_max); in ceph_show_options()
593 if (fsopt->caps_wanted_delay_min != CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT) in ceph_show_options()
595 fsopt->caps_wanted_delay_min); in ceph_show_options()
596 if (fsopt->caps_wanted_delay_max != CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT) in ceph_show_options()
598 fsopt->caps_wanted_delay_max); in ceph_show_options()
599 if (fsopt->max_readdir != CEPH_MAX_READDIR_DEFAULT) in ceph_show_options()
600 seq_printf(m, ",readdir_max_entries=%u", fsopt->max_readdir); in ceph_show_options()
601 if (fsopt->max_readdir_bytes != CEPH_MAX_READDIR_BYTES_DEFAULT) in ceph_show_options()
602 seq_printf(m, ",readdir_max_bytes=%u", fsopt->max_readdir_bytes); in ceph_show_options()
603 if (strcmp(fsopt->snapdir_name, CEPH_SNAPDIRNAME_DEFAULT)) in ceph_show_options()
604 seq_show_option(m, "snapdirname", fsopt->snapdir_name); in ceph_show_options()
635 static struct ceph_fs_client *create_fs_client(struct ceph_mount_options *fsopt, in create_fs_client() argument
657 if (!fsopt->mds_namespace) { in create_fs_client()
665 fsc->mount_options = fsopt; in create_fs_client()
700 destroy_mount_options(fsopt); in create_fs_client()
998 struct ceph_mount_options *fsopt = new->mount_options; in ceph_compare_super() local
1004 if (compare_mount_options(fsopt, opt, other)) { in ceph_compare_super()
1134 struct ceph_mount_options *fsopt = pctx->opts; in ceph_reconfigure_fc() local
1137 if (fsopt->flags & CEPH_MOUNT_OPT_ASYNC_DIROPS) in ceph_reconfigure_fc()
1159 struct ceph_mount_options *fsopt; in ceph_init_fs_context() local
1173 fsopt = pctx->opts; in ceph_init_fs_context()
1174 fsopt->flags = CEPH_MOUNT_OPT_DEFAULT; in ceph_init_fs_context()
1176 fsopt->wsize = CEPH_MAX_WRITE_SIZE; in ceph_init_fs_context()
1177 fsopt->rsize = CEPH_MAX_READ_SIZE; in ceph_init_fs_context()
1178 fsopt->rasize = CEPH_RASIZE_DEFAULT; in ceph_init_fs_context()
1179 fsopt->snapdir_name = kstrdup(CEPH_SNAPDIRNAME_DEFAULT, GFP_KERNEL); in ceph_init_fs_context()
1180 if (!fsopt->snapdir_name) in ceph_init_fs_context()
1183 fsopt->caps_wanted_delay_min = CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT; in ceph_init_fs_context()
1184 fsopt->caps_wanted_delay_max = CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT; in ceph_init_fs_context()
1185 fsopt->max_readdir = CEPH_MAX_READDIR_DEFAULT; in ceph_init_fs_context()
1186 fsopt->max_readdir_bytes = CEPH_MAX_READDIR_BYTES_DEFAULT; in ceph_init_fs_context()
1187 fsopt->congestion_kb = default_congestion_kb(); in ceph_init_fs_context()