summaryrefslogtreecommitdiff
path: root/libbcachefs.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-03-13 03:23:27 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-03-13 03:23:27 -0400
commit6aabc97dc9c895cb1bb2423c84c7131bff7dd6c1 (patch)
tree8dd7d9ced909b8f86c50a96ab50684684c9d2b58 /libbcachefs.c
parent35d3f92ad57eae226e255817131fa02605aac1b5 (diff)
Add --durability to format
Diffstat (limited to 'libbcachefs.c')
-rw-r--r--libbcachefs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbcachefs.c b/libbcachefs.c
index cd277fa7..052ca35b 100644
--- a/libbcachefs.c
+++ b/libbcachefs.c
@@ -247,6 +247,7 @@ struct bch_sb *bch2_format(struct format_opts opts,
SET_BCH_MEMBER_REPLACEMENT(m, CACHE_REPLACEMENT_LRU);
SET_BCH_MEMBER_DISCARD(m, i->discard);
SET_BCH_MEMBER_DATA_ALLOWED(m, i->data_allowed);
+ SET_BCH_MEMBER_DURABILITY(m, i->durability + 1);
}
/* Disk groups */