summaryrefslogtreecommitdiff
path: root/libbcachefs/opts.c
diff options
context:
space:
mode:
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 64bf5a38..fd3f7cdd 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, ...) \