diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-01 01:45:15 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-09 09:14:11 -0900 |
commit | a17f7bcec7ed810a247c24e56229af8f43a9a6ae (patch) | |
tree | 1b2d60b21661bd2991324e3efaa83b3cdd87a783 /libbcache/opts.h | |
parent | 171ee48e57be78f4e95954c99851553fa523bf91 (diff) |
cmd_migrate
Diffstat (limited to 'libbcache/opts.h')
-rw-r--r-- | libbcache/opts.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libbcache/opts.h b/libbcache/opts.h index 95184db1..9b10310d 100644 --- a/libbcache/opts.h +++ b/libbcache/opts.h @@ -86,11 +86,17 @@ enum opt_type { BCH_OPT(noreplay, 0444, NO_SB_OPT, \ s8, OPT_BOOL()) \ BCH_OPT(norecovery, 0444, NO_SB_OPT, \ - s8, OPT_BOOL()) + s8, OPT_BOOL()) \ + BCH_OPT(noexcl, 0444, NO_SB_OPT, \ + s8, OPT_BOOL()) \ + BCH_OPT(sb, 0444, NO_SB_OPT, \ + s64, OPT_UINT(0, S64_MAX)) \ #define BCH_OPTS() \ BCH_OPT(read_only, 0444, NO_SB_OPT, \ s8, OPT_BOOL()) \ + BCH_OPT(nostart, 0444, NO_SB_OPT, \ + s8, OPT_BOOL()) \ BCH_VISIBLE_OPTS() struct bch_opts { @@ -145,6 +151,8 @@ static inline void bch_opts_apply(struct bch_opts *dst, struct bch_opts src) #undef BCH_OPT } +#define opt_defined(_opt) ((_opt) >= 0) + void bch_opt_set(struct bch_opts *, enum bch_opt_id, u64); struct bch_opts bch_sb_opts(struct bch_sb *); |