diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-23 19:47:08 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-23 19:47:08 -0500 |
commit | 8e56da27fd23c169395b3b266b15a1c093aba849 (patch) | |
tree | 3e23e78c93306aa70a6931400e5f7b7943fc3518 | |
parent | bc1680d488a7694369dc219f92a8f4bb1331841c (diff) |
fixup for old gcc
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | libbcachefs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libbcachefs.c b/libbcachefs.c index 68b750a3..ec6b2727 100644 --- a/libbcachefs.c +++ b/libbcachefs.c @@ -445,6 +445,7 @@ struct bchfs_handle bcache_fs_open(const char *path) */ struct bchfs_handle bchu_fs_open_by_dev(const char *path, int *idx) { + struct bch_opts opts = bch2_opts_empty(); char buf[1024], *uuid_str; struct stat stat = xstat(path); @@ -469,8 +470,6 @@ struct bchfs_handle bchu_fs_open_by_dev(const char *path, int *idx) uuid_str = p + 1; } else { read_super: - struct bch_opts opts = bch2_opts_empty(); - opt_set(opts, noexcl, true); opt_set(opts, nochanges, true); |