Lines Matching refs:fsopt
242 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_source() local
256 kfree(fsopt->server_path); in ceph_parse_source()
257 fsopt->server_path = kstrdup(dev_name_end, GFP_KERNEL); in ceph_parse_source()
258 if (!fsopt->server_path) in ceph_parse_source()
261 canonicalize_path(fsopt->server_path); in ceph_parse_source()
271 if (fsopt->server_path) in ceph_parse_source()
272 dout("server path '%s'\n", fsopt->server_path); in ceph_parse_source()
288 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_mount_param() local
304 kfree(fsopt->snapdir_name); in ceph_parse_mount_param()
305 fsopt->snapdir_name = param->string; in ceph_parse_mount_param()
309 kfree(fsopt->mds_namespace); in ceph_parse_mount_param()
310 fsopt->mds_namespace = param->string; in ceph_parse_mount_param()
316 fsopt->flags &= ~CEPH_MOUNT_OPT_CLEANRECOVER; in ceph_parse_mount_param()
318 fsopt->flags |= CEPH_MOUNT_OPT_CLEANRECOVER; in ceph_parse_mount_param()
330 fsopt->wsize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param()
336 fsopt->rsize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param()
339 fsopt->rasize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param()
344 fsopt->caps_wanted_delay_min = result.uint_32; in ceph_parse_mount_param()
349 fsopt->caps_wanted_delay_max = result.uint_32; in ceph_parse_mount_param()
354 fsopt->caps_max = result.int_32; in ceph_parse_mount_param()
359 fsopt->max_readdir = result.uint_32; in ceph_parse_mount_param()
364 fsopt->max_readdir_bytes = result.uint_32; in ceph_parse_mount_param()
369 fsopt->congestion_kb = result.uint_32; in ceph_parse_mount_param()
373 fsopt->flags |= CEPH_MOUNT_OPT_DIRSTAT; in ceph_parse_mount_param()
375 fsopt->flags &= ~CEPH_MOUNT_OPT_DIRSTAT; in ceph_parse_mount_param()
379 fsopt->flags |= CEPH_MOUNT_OPT_RBYTES; in ceph_parse_mount_param()
381 fsopt->flags &= ~CEPH_MOUNT_OPT_RBYTES; in ceph_parse_mount_param()
385 fsopt->flags &= ~CEPH_MOUNT_OPT_NOASYNCREADDIR; in ceph_parse_mount_param()
387 fsopt->flags |= CEPH_MOUNT_OPT_NOASYNCREADDIR; in ceph_parse_mount_param()
391 fsopt->flags |= CEPH_MOUNT_OPT_DCACHE; in ceph_parse_mount_param()
393 fsopt->flags &= ~CEPH_MOUNT_OPT_DCACHE; in ceph_parse_mount_param()
397 fsopt->flags |= CEPH_MOUNT_OPT_INO32; in ceph_parse_mount_param()
399 fsopt->flags &= ~CEPH_MOUNT_OPT_INO32; in ceph_parse_mount_param()
404 kfree(fsopt->fscache_uniq); in ceph_parse_mount_param()
405 fsopt->fscache_uniq = NULL; in ceph_parse_mount_param()
407 fsopt->flags &= ~CEPH_MOUNT_OPT_FSCACHE; in ceph_parse_mount_param()
409 fsopt->flags |= CEPH_MOUNT_OPT_FSCACHE; in ceph_parse_mount_param()
410 fsopt->fscache_uniq = param->string; in ceph_parse_mount_param()
419 fsopt->flags &= ~CEPH_MOUNT_OPT_NOPOOLPERM; in ceph_parse_mount_param()
421 fsopt->flags |= CEPH_MOUNT_OPT_NOPOOLPERM; in ceph_parse_mount_param()
425 fsopt->flags &= ~CEPH_MOUNT_OPT_MOUNTWAIT; in ceph_parse_mount_param()
427 fsopt->flags |= CEPH_MOUNT_OPT_MOUNTWAIT; in ceph_parse_mount_param()
431 fsopt->flags &= ~CEPH_MOUNT_OPT_NOQUOTADF; in ceph_parse_mount_param()
433 fsopt->flags |= CEPH_MOUNT_OPT_NOQUOTADF; in ceph_parse_mount_param()
437 fsopt->flags &= ~CEPH_MOUNT_OPT_NOCOPYFROM; in ceph_parse_mount_param()
439 fsopt->flags |= CEPH_MOUNT_OPT_NOCOPYFROM; in ceph_parse_mount_param()
454 fsopt->flags &= ~CEPH_MOUNT_OPT_ASYNC_DIROPS; in ceph_parse_mount_param()
456 fsopt->flags |= CEPH_MOUNT_OPT_ASYNC_DIROPS; in ceph_parse_mount_param()
531 struct ceph_mount_options *fsopt = fsc->mount_options; in ceph_show_options() local
547 if (fsopt->flags & CEPH_MOUNT_OPT_DIRSTAT) in ceph_show_options()
549 if ((fsopt->flags & CEPH_MOUNT_OPT_RBYTES)) in ceph_show_options()
551 if (fsopt->flags & CEPH_MOUNT_OPT_NOASYNCREADDIR) in ceph_show_options()
553 if ((fsopt->flags & CEPH_MOUNT_OPT_DCACHE) == 0) in ceph_show_options()
555 if (fsopt->flags & CEPH_MOUNT_OPT_INO32) in ceph_show_options()
557 if (fsopt->flags & CEPH_MOUNT_OPT_FSCACHE) { in ceph_show_options()
558 seq_show_option(m, "fsc", fsopt->fscache_uniq); in ceph_show_options()
560 if (fsopt->flags & CEPH_MOUNT_OPT_NOPOOLPERM) in ceph_show_options()
562 if (fsopt->flags & CEPH_MOUNT_OPT_NOQUOTADF) in ceph_show_options()
572 if ((fsopt->flags & CEPH_MOUNT_OPT_NOCOPYFROM) == 0) in ceph_show_options()
575 if (fsopt->mds_namespace) in ceph_show_options()
576 seq_show_option(m, "mds_namespace", fsopt->mds_namespace); in ceph_show_options()
578 if (fsopt->flags & CEPH_MOUNT_OPT_CLEANRECOVER) in ceph_show_options()
581 if (fsopt->flags & CEPH_MOUNT_OPT_ASYNC_DIROPS) in ceph_show_options()
584 if (fsopt->wsize != CEPH_MAX_WRITE_SIZE) in ceph_show_options()
585 seq_printf(m, ",wsize=%u", fsopt->wsize); in ceph_show_options()
586 if (fsopt->rsize != CEPH_MAX_READ_SIZE) in ceph_show_options()
587 seq_printf(m, ",rsize=%u", fsopt->rsize); in ceph_show_options()
588 if (fsopt->rasize != CEPH_RASIZE_DEFAULT) in ceph_show_options()
589 seq_printf(m, ",rasize=%u", fsopt->rasize); in ceph_show_options()
590 if (fsopt->congestion_kb != default_congestion_kb()) in ceph_show_options()
591 seq_printf(m, ",write_congestion_kb=%u", fsopt->congestion_kb); in ceph_show_options()
592 if (fsopt->caps_max) in ceph_show_options()
593 seq_printf(m, ",caps_max=%d", fsopt->caps_max); in ceph_show_options()
594 if (fsopt->caps_wanted_delay_min != CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT) in ceph_show_options()
596 fsopt->caps_wanted_delay_min); in ceph_show_options()
597 if (fsopt->caps_wanted_delay_max != CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT) in ceph_show_options()
599 fsopt->caps_wanted_delay_max); in ceph_show_options()
600 if (fsopt->max_readdir != CEPH_MAX_READDIR_DEFAULT) in ceph_show_options()
601 seq_printf(m, ",readdir_max_entries=%u", fsopt->max_readdir); in ceph_show_options()
602 if (fsopt->max_readdir_bytes != CEPH_MAX_READDIR_BYTES_DEFAULT) in ceph_show_options()
603 seq_printf(m, ",readdir_max_bytes=%u", fsopt->max_readdir_bytes); in ceph_show_options()
604 if (strcmp(fsopt->snapdir_name, CEPH_SNAPDIRNAME_DEFAULT)) in ceph_show_options()
605 seq_show_option(m, "snapdirname", fsopt->snapdir_name); in ceph_show_options()
636 static struct ceph_fs_client *create_fs_client(struct ceph_mount_options *fsopt, in create_fs_client() argument
658 if (!fsopt->mds_namespace) { in create_fs_client()
666 fsc->mount_options = fsopt; in create_fs_client()
701 destroy_mount_options(fsopt); in create_fs_client()
999 struct ceph_mount_options *fsopt = new->mount_options; in ceph_compare_super() local
1005 if (compare_mount_options(fsopt, opt, fsc)) { in ceph_compare_super()
1146 struct ceph_mount_options *fsopt = pctx->opts; in ceph_reconfigure_fc() local
1149 if (fsopt->flags & CEPH_MOUNT_OPT_ASYNC_DIROPS) in ceph_reconfigure_fc()
1171 struct ceph_mount_options *fsopt; in ceph_init_fs_context() local
1185 fsopt = pctx->opts; in ceph_init_fs_context()
1186 fsopt->flags = CEPH_MOUNT_OPT_DEFAULT; in ceph_init_fs_context()
1188 fsopt->wsize = CEPH_MAX_WRITE_SIZE; in ceph_init_fs_context()
1189 fsopt->rsize = CEPH_MAX_READ_SIZE; in ceph_init_fs_context()
1190 fsopt->rasize = CEPH_RASIZE_DEFAULT; in ceph_init_fs_context()
1191 fsopt->snapdir_name = kstrdup(CEPH_SNAPDIRNAME_DEFAULT, GFP_KERNEL); in ceph_init_fs_context()
1192 if (!fsopt->snapdir_name) in ceph_init_fs_context()
1195 fsopt->caps_wanted_delay_min = CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT; in ceph_init_fs_context()
1196 fsopt->caps_wanted_delay_max = CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT; in ceph_init_fs_context()
1197 fsopt->max_readdir = CEPH_MAX_READDIR_DEFAULT; in ceph_init_fs_context()
1198 fsopt->max_readdir_bytes = CEPH_MAX_READDIR_BYTES_DEFAULT; in ceph_init_fs_context()
1199 fsopt->congestion_kb = default_congestion_kb(); in ceph_init_fs_context()