diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-11-08 15:54:01 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-11-08 16:01:26 -0900 |
commit | b9845593296c2e9cc53780fb2ad80ddaf26862d1 (patch) | |
tree | 313487894ead3377e0268b822d970dcc88389ead /cmd_migrate.c | |
parent | 8351bbc05bc163758d3410ce6d6cab8eb4441609 (diff) |
update for new option code
Diffstat (limited to 'cmd_migrate.c')
-rw-r--r-- | cmd_migrate.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd_migrate.c b/cmd_migrate.c index e79f2e06..4b0dd9bc 100644 --- a/cmd_migrate.c +++ b/cmd_migrate.c @@ -749,9 +749,9 @@ int cmd_migrate(int argc, char *argv[]) char *path[1] = { dev.path }; const char *err; - opts.sb = sb_offset; - opts.nostart = true; - opts.noexcl = true; + opt_set(opts, sb, sb_offset); + opt_set(opts, nostart, true); + opt_set(opts, noexcl, true); err = bch2_fs_open(path, 1, opts, &c); if (err) @@ -768,8 +768,8 @@ int cmd_migrate(int argc, char *argv[]) bch2_fs_stop(c); printf("Migrate complete, running fsck:\n"); - opts.nostart = false; - opts.nochanges = true; + opt_set(opts, nostart, false); + opt_set(opts, nochanges, true); err = bch2_fs_open(path, 1, opts, &c); if (err) |