diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-01-11 06:41:59 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-01-11 07:02:08 -0500 |
commit | 4de98a2712764bceb9e0f67b1ac2f2c7862feb77 (patch) | |
tree | 94861af51e19af917d80952dfabeaa7a76901eaa /cmd_format.c | |
parent | f8cbede6d18e81c804e62fd7d576310b420dcaac (diff) |
Update bcachefs sources to 02ae70070a bcachefs: Allocate new btree roots lazily
Diffstat (limited to 'cmd_format.c')
-rw-r--r-- | cmd_format.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd_format.c b/cmd_format.c index 47617660..42e8d1a6 100644 --- a/cmd_format.c +++ b/cmd_format.c @@ -328,11 +328,11 @@ int cmd_show_super(int argc, char *argv[]) if (argc) die("too many arguments"); - const char *err; + struct bch_opts opts = bch2_opts_empty(); struct bch_sb_handle sb; - err = bch2_read_super(dev, bch2_opts_empty(), &sb); - if (err) - die("Error opening %s: %s", dev, err); + int ret = bch2_read_super(dev, &opts, &sb); + if (ret) + die("Error opening %s: %s", dev, strerror(-ret)); bch2_sb_print(sb.sb, print_layout, fields, HUMAN_READABLE); bch2_free_super(&sb); |