summaryrefslogtreecommitdiff
path: root/libbcachefs/opts.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-07-08 12:14:49 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2021-07-08 12:14:49 -0400
commit050d5f7bcf08bd02f5077a1c5559f352fa449e1e (patch)
tree74cfed77af7b39d9f3234d91a0162c61b53391c4 /libbcachefs/opts.c
parenta471a754494789a2a88bf549c3b0fc98c6816958 (diff)
Update bcachefs sources to 3693b2ca83 fixup! bcachefs: More topology repair code
Diffstat (limited to 'libbcachefs/opts.c')
-rw-r--r--libbcachefs/opts.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libbcachefs/opts.c b/libbcachefs/opts.c
index 64bf5a3..fd3f7cd 100644
--- a/libbcachefs/opts.c
+++ b/libbcachefs/opts.c
@@ -63,6 +63,18 @@ const char * const bch2_member_states[] = {
#undef x
+const char * const bch2_d_types[] = {
+ [DT_UNKNOWN] = "unknown",
+ [DT_FIFO] = "fifo",
+ [DT_CHR] = "chr",
+ [DT_DIR] = "dir",
+ [DT_BLK] = "blk",
+ [DT_REG] = "reg",
+ [DT_LNK] = "lnk",
+ [DT_SOCK] = "sock",
+ [DT_WHT] = "whiteout",
+};
+
void bch2_opts_apply(struct bch_opts *dst, struct bch_opts src)
{
#define x(_name, ...) \