diff options
author | Mike Snitzer <snitzer@redhat.com> | 2016-06-24 23:09:35 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-07-21 05:49:50 +0200 |
commit | f8df1fdf18839cb4ef2035310bb9b6ec02025598 (patch) | |
tree | b355c0f0596d6850ba68ca542014c17c2a6181b3 /drivers/md/dm-table.c | |
parent | dm linear: add DAX support (diff) | |
download | linux-f8df1fdf18839cb4ef2035310bb9b6ec02025598.tar.xz linux-f8df1fdf18839cb4ef2035310bb9b6ec02025598.zip |
dm error: add DAX support
Allow the error target to replace an existing DAX-enabled target.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r-- | drivers/md/dm-table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index ee6f37eafbc3..3e407a9cde1f 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -922,7 +922,8 @@ static int dm_table_determine_type(struct dm_table *t) if (bio_based) { /* We must use this table as bio-based */ t->type = DM_TYPE_BIO_BASED; - if (dm_table_supports_dax(t)) + if (dm_table_supports_dax(t) || + (list_empty(devices) && live_md_type == DM_TYPE_DAX_BIO_BASED)) t->type = DM_TYPE_DAX_BIO_BASED; return 0; } |