summaryrefslogtreecommitdiff
path: root/libbcachefs/opts.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/opts.h')
-rw-r--r--libbcachefs/opts.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libbcachefs/opts.h b/libbcachefs/opts.h
index 81c66083..c65a8d13 100644
--- a/libbcachefs/opts.h
+++ b/libbcachefs/opts.h
@@ -225,6 +225,7 @@ enum bch_opt_id {
};
struct bch_fs;
+struct printbuf;
struct bch_option {
struct attribute attr;
@@ -241,7 +242,7 @@ struct bch_option {
};
struct {
int (*parse)(struct bch_fs *, const char *, u64 *);
- int (*print)(struct bch_fs *, char *, size_t, u64);
+ void (*to_text)(struct printbuf *, struct bch_fs *, u64);
};
};
@@ -261,8 +262,8 @@ int bch2_opt_parse(struct bch_fs *, const struct bch_option *, const char *, u64
#define OPT_SHOW_FULL_LIST (1 << 0)
#define OPT_SHOW_MOUNT_STYLE (1 << 1)
-int bch2_opt_to_text(struct bch_fs *, char *, size_t,
- const struct bch_option *, u64, unsigned);
+void bch2_opt_to_text(struct printbuf *, struct bch_fs *,
+ const struct bch_option *, u64, unsigned);
int bch2_parse_mount_opts(struct bch_opts *, char *);