Lines Matching defs:opts
683 static int __bch2_read_super(const char *path, struct bch_opts *opts,
686 u64 offset = opt_get(*opts, sb);
710 if (opt_get(*opts, direct_io) == false)
714 if (!opt_get(*opts, noexcl))
717 if (!opt_get(*opts, nochanges))
723 opt_get(*opts, read_only)) {
728 opt_set(*opts, nochanges, true);
754 if (opt_defined(*opts, sb))
760 bch2_print_opts(opts, KERN_INFO "%s", err2.buf);
762 bch2_print_opts(opts, KERN_ERR "%s", err2.buf);
794 if (offset == opt_get(*opts, sb))
807 opt_get(*opts, direct_io)) {
809 opt_set(*opts, direct_io, false);
824 bch2_print_opts(opts, KERN_ERR "bcachefs (%s): error validating superblock: %s\n",
832 bch2_print_opts(opts, KERN_ERR "bcachefs (%s): error reading superblock: %s\n",
839 int bch2_read_super(const char *path, struct bch_opts *opts,
842 return __bch2_read_super(path, opts, sb, false);
847 int bch2_read_super_silent(const char *path, struct bch_opts *opts,
850 return __bch2_read_super(path, opts, sb, true);
899 SET_BCH_SB_CSUM_TYPE(sb, bch2_csum_opt_to_type(c->opts.metadata_checksum, false));
931 if (c->opts.very_degraded)
985 if (c->opts.nochanges)