]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Manage.c
mdadm/r5cache: allow adding journal to array without journal
[thirdparty/mdadm.git] / Manage.c
index 04b9398c2e4f1e76587de518966b0d557b9688ba..b82a7293f0f14da0398236690e07442a4c46ef0a 100644 (file)
--- a/Manage.c
+++ b/Manage.c
@@ -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;
        }