diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-10 12:40:01 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-10 12:40:01 -0900 |
commit | 3bf874183a518cc1bf785d9944de05cf51a177d3 (patch) | |
tree | 65fb33f65a65996669fb96e5c746f6dd4d22d31c /libbcache/opts.c | |
parent | c3844b0b7ff75527a87f52229f15341c24c0d356 (diff) |
update bcache sources
Diffstat (limited to 'libbcache/opts.c')
-rw-r--r-- | libbcache/opts.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libbcache/opts.c b/libbcache/opts.c index ea71dfb..41780d5 100644 --- a/libbcache/opts.c +++ b/libbcache/opts.c @@ -50,7 +50,7 @@ const char * const bch_cache_modes[] = { }; const char * const bch_dev_state[] = { - "active", + "readwrite", "readonly", "failed", "spare", @@ -171,8 +171,7 @@ int parse_one_opt(enum bch_opt_id id, const char *val, u64 *res) int bch_parse_mount_opts(struct bch_opts *opts, char *options) { char *opt, *name, *val; - enum bch_opt_id id; - int ret; + int ret, id; u64 v; while ((opt = strsep(&options, ",")) != NULL) { |