diff options
author | Song Liu <songliubraving@fb.com> | 2017-03-28 20:04:44 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-08-02 15:22:51 +0200 |
commit | 3373d49f32b2bd8149f633727eba453708a9bf9c (patch) | |
tree | 342fdfde43ac52c5bcd80a4f5f4f5dbbe465dc3e /Manage.c | |
parent | super1: Always round data offset to 1M (diff) | |
download | mdadm-3373d49f32b2bd8149f633727eba453708a9bf9c.tar.xz mdadm-3373d49f32b2bd8149f633727eba453708a9bf9c.zip |
mdadm/r5cache: allow adding journal to array without journal
Currently, --add-journal can be only used to recreate broken journal
for arrays with journal since creation. As the kernel code getting
more mature, this constraint is no longer necessary.
This patch allows --add-journal to add journal to array without
journal.
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'Manage.c')
-rw-r--r-- | Manage.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -911,7 +911,6 @@ int Manage_add(int fd, int tfd, struct mddev_dev *dv, /* only add journal to array that supports journaling */ if (dv->disposition == 'j') { - struct mdinfo mdi; struct mdinfo *mdp; mdp = sysfs_read(fd, NULL, GET_ARRAY_STATE); @@ -928,11 +927,6 @@ int Manage_add(int fd, int tfd, struct mddev_dev *dv, sysfs_free(mdp); - tst->ss->getinfo_super(tst, &mdi, NULL); - if (mdi.journal_device_required == 0) { - pr_err("%s does not support journal device.\n", devname); - return -1; - } disc.raid_disk = 0; } |