Lines Matching refs:fsopt
230 struct ceph_mount_options *fsopt = private; in parse_fsopt_token() local
254 kfree(fsopt->snapdir_name); in parse_fsopt_token()
255 fsopt->snapdir_name = kstrndup(argstr[0].from, in parse_fsopt_token()
258 if (!fsopt->snapdir_name) in parse_fsopt_token()
262 kfree(fsopt->mds_namespace); in parse_fsopt_token()
263 fsopt->mds_namespace = kstrndup(argstr[0].from, in parse_fsopt_token()
266 if (!fsopt->mds_namespace) in parse_fsopt_token()
271 kfree(fsopt->fscache_uniq); in parse_fsopt_token()
272 fsopt->fscache_uniq = kstrndup(argstr[0].from, in parse_fsopt_token()
275 if (!fsopt->fscache_uniq) in parse_fsopt_token()
277 fsopt->flags |= CEPH_MOUNT_OPT_FSCACHE; in parse_fsopt_token()
286 fsopt->wsize = ALIGN(intval, PAGE_SIZE); in parse_fsopt_token()
291 fsopt->rsize = ALIGN(intval, PAGE_SIZE); in parse_fsopt_token()
296 fsopt->rasize = ALIGN(intval, PAGE_SIZE); in parse_fsopt_token()
301 fsopt->caps_wanted_delay_min = intval; in parse_fsopt_token()
306 fsopt->caps_wanted_delay_max = intval; in parse_fsopt_token()
311 fsopt->max_readdir = intval; in parse_fsopt_token()
316 fsopt->max_readdir_bytes = intval; in parse_fsopt_token()
321 fsopt->congestion_kb = intval; in parse_fsopt_token()
324 fsopt->flags |= CEPH_MOUNT_OPT_DIRSTAT; in parse_fsopt_token()
327 fsopt->flags &= ~CEPH_MOUNT_OPT_DIRSTAT; in parse_fsopt_token()
330 fsopt->flags |= CEPH_MOUNT_OPT_RBYTES; in parse_fsopt_token()
333 fsopt->flags &= ~CEPH_MOUNT_OPT_RBYTES; in parse_fsopt_token()
336 fsopt->flags &= ~CEPH_MOUNT_OPT_NOASYNCREADDIR; in parse_fsopt_token()
339 fsopt->flags |= CEPH_MOUNT_OPT_NOASYNCREADDIR; in parse_fsopt_token()
342 fsopt->flags |= CEPH_MOUNT_OPT_DCACHE; in parse_fsopt_token()
345 fsopt->flags &= ~CEPH_MOUNT_OPT_DCACHE; in parse_fsopt_token()
348 fsopt->flags |= CEPH_MOUNT_OPT_INO32; in parse_fsopt_token()
351 fsopt->flags &= ~CEPH_MOUNT_OPT_INO32; in parse_fsopt_token()
355 fsopt->flags |= CEPH_MOUNT_OPT_FSCACHE; in parse_fsopt_token()
356 kfree(fsopt->fscache_uniq); in parse_fsopt_token()
357 fsopt->fscache_uniq = NULL; in parse_fsopt_token()
364 fsopt->flags &= ~CEPH_MOUNT_OPT_FSCACHE; in parse_fsopt_token()
365 kfree(fsopt->fscache_uniq); in parse_fsopt_token()
366 fsopt->fscache_uniq = NULL; in parse_fsopt_token()
369 fsopt->flags &= ~CEPH_MOUNT_OPT_NOPOOLPERM; in parse_fsopt_token()
372 fsopt->flags |= CEPH_MOUNT_OPT_NOPOOLPERM; in parse_fsopt_token()
375 fsopt->flags &= ~CEPH_MOUNT_OPT_MOUNTWAIT; in parse_fsopt_token()
378 fsopt->flags |= CEPH_MOUNT_OPT_MOUNTWAIT; in parse_fsopt_token()
381 fsopt->flags &= ~CEPH_MOUNT_OPT_NOQUOTADF; in parse_fsopt_token()
384 fsopt->flags |= CEPH_MOUNT_OPT_NOQUOTADF; in parse_fsopt_token()
388 fsopt->sb_flags |= SB_POSIXACL; in parse_fsopt_token()
392 fsopt->sb_flags &= ~SB_POSIXACL; in parse_fsopt_token()
458 struct ceph_mount_options *fsopt; in parse_mount_options() local
465 fsopt = kzalloc(sizeof(*fsopt), GFP_KERNEL); in parse_mount_options()
466 if (!fsopt) in parse_mount_options()
469 dout("parse_mount_options %p, dev_name '%s'\n", fsopt, dev_name); in parse_mount_options()
471 fsopt->sb_flags = flags; in parse_mount_options()
472 fsopt->flags = CEPH_MOUNT_OPT_DEFAULT; in parse_mount_options()
474 fsopt->wsize = CEPH_MAX_WRITE_SIZE; in parse_mount_options()
475 fsopt->rsize = CEPH_MAX_READ_SIZE; in parse_mount_options()
476 fsopt->rasize = CEPH_RASIZE_DEFAULT; in parse_mount_options()
477 fsopt->snapdir_name = kstrdup(CEPH_SNAPDIRNAME_DEFAULT, GFP_KERNEL); in parse_mount_options()
478 if (!fsopt->snapdir_name) { in parse_mount_options()
483 fsopt->caps_wanted_delay_min = CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT; in parse_mount_options()
484 fsopt->caps_wanted_delay_max = CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT; in parse_mount_options()
485 fsopt->max_readdir = CEPH_MAX_READDIR_DEFAULT; in parse_mount_options()
486 fsopt->max_readdir_bytes = CEPH_MAX_READDIR_BYTES_DEFAULT; in parse_mount_options()
487 fsopt->congestion_kb = default_congestion_kb(); in parse_mount_options()
505 fsopt->server_path = kstrdup(dev_name_end, GFP_KERNEL); in parse_mount_options()
506 if (!fsopt->server_path) { in parse_mount_options()
511 canonicalize_path(fsopt->server_path); in parse_mount_options()
523 if (fsopt->server_path) in parse_mount_options()
524 dout("server path '%s'\n", fsopt->server_path); in parse_mount_options()
527 parse_fsopt_token, (void *)fsopt); in parse_mount_options()
534 *pfsopt = fsopt; in parse_mount_options()
538 destroy_mount_options(fsopt); in parse_mount_options()
550 struct ceph_mount_options *fsopt = fsc->mount_options; in ceph_show_options() local
566 if (fsopt->flags & CEPH_MOUNT_OPT_DIRSTAT) in ceph_show_options()
568 if ((fsopt->flags & CEPH_MOUNT_OPT_RBYTES)) in ceph_show_options()
570 if (fsopt->flags & CEPH_MOUNT_OPT_NOASYNCREADDIR) in ceph_show_options()
572 if ((fsopt->flags & CEPH_MOUNT_OPT_DCACHE) == 0) in ceph_show_options()
574 if (fsopt->flags & CEPH_MOUNT_OPT_INO32) in ceph_show_options()
576 if (fsopt->flags & CEPH_MOUNT_OPT_FSCACHE) { in ceph_show_options()
577 seq_show_option(m, "fsc", fsopt->fscache_uniq); in ceph_show_options()
579 if (fsopt->flags & CEPH_MOUNT_OPT_NOPOOLPERM) in ceph_show_options()
581 if (fsopt->flags & CEPH_MOUNT_OPT_NOQUOTADF) in ceph_show_options()
585 if (fsopt->sb_flags & SB_POSIXACL) in ceph_show_options()
591 if (fsopt->mds_namespace) in ceph_show_options()
592 seq_show_option(m, "mds_namespace", fsopt->mds_namespace); in ceph_show_options()
593 if (fsopt->wsize != CEPH_MAX_WRITE_SIZE) in ceph_show_options()
594 seq_printf(m, ",wsize=%d", fsopt->wsize); in ceph_show_options()
595 if (fsopt->rsize != CEPH_MAX_READ_SIZE) in ceph_show_options()
596 seq_printf(m, ",rsize=%d", fsopt->rsize); in ceph_show_options()
597 if (fsopt->rasize != CEPH_RASIZE_DEFAULT) in ceph_show_options()
598 seq_printf(m, ",rasize=%d", fsopt->rasize); in ceph_show_options()
599 if (fsopt->congestion_kb != default_congestion_kb()) in ceph_show_options()
600 seq_printf(m, ",write_congestion_kb=%d", fsopt->congestion_kb); in ceph_show_options()
601 if (fsopt->caps_wanted_delay_min != CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT) in ceph_show_options()
603 fsopt->caps_wanted_delay_min); in ceph_show_options()
604 if (fsopt->caps_wanted_delay_max != CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT) in ceph_show_options()
606 fsopt->caps_wanted_delay_max); in ceph_show_options()
607 if (fsopt->max_readdir != CEPH_MAX_READDIR_DEFAULT) in ceph_show_options()
608 seq_printf(m, ",readdir_max_entries=%d", fsopt->max_readdir); in ceph_show_options()
609 if (fsopt->max_readdir_bytes != CEPH_MAX_READDIR_BYTES_DEFAULT) in ceph_show_options()
610 seq_printf(m, ",readdir_max_bytes=%d", fsopt->max_readdir_bytes); in ceph_show_options()
611 if (strcmp(fsopt->snapdir_name, CEPH_SNAPDIRNAME_DEFAULT)) in ceph_show_options()
612 seq_show_option(m, "snapdirname", fsopt->snapdir_name); in ceph_show_options()
643 static struct ceph_fs_client *create_fs_client(struct ceph_mount_options *fsopt, in create_fs_client() argument
667 if (!fsopt->mds_namespace) { in create_fs_client()
675 fsc->mount_options = fsopt; in create_fs_client()
706 fsc->min_caps = fsopt->max_readdir; in create_fs_client()
722 destroy_mount_options(fsopt); in create_fs_client()
1017 struct ceph_mount_options *fsopt = new->mount_options; in ceph_compare_super() local
1023 if (compare_mount_options(fsopt, opt, other)) { in ceph_compare_super()
1032 if (fsopt->sb_flags != other->mount_options->sb_flags) { in ceph_compare_super()
1070 struct ceph_mount_options *fsopt = NULL; in ceph_mount() local
1078 err = parse_mount_options(&fsopt, &opt, flags, data, dev_name); in ceph_mount()
1085 fsc = create_fs_client(fsopt, opt); in ceph_mount()