diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-03 16:47:00 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-14 01:58:28 -0500 |
commit | 1442919f12d1ad32f37e093a143ba32f53522eaf (patch) | |
tree | 7f278985990c1948be8301af27cb28e14f4250ee | |
parent | df958ca647ae73c548cf07a7bce010b32eabd8d7 (diff) |
force enable nocow mode
-rw-r--r-- | fs/bcachefs/inode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/inode.h b/fs/bcachefs/inode.h index 8cb9a3023992..201e796e22a6 100644 --- a/fs/bcachefs/inode.h +++ b/fs/bcachefs/inode.h @@ -157,6 +157,7 @@ io_opts(struct bch_fs *c, struct bch_inode_unpacked *inode) struct bch_io_opts opts = bch2_opts_to_inode_opts(c->opts); bch2_io_opts_apply(&opts, bch2_inode_opts_get(inode)); + opts.nocow = true; if (opts.nocow) opts.compression = opts.background_compression = opts.data_checksum = opts.erasure_code; return opts; |