diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2018-05-15 12:17:39 +0100 |
---|---|---|
committer | Dimitri John Ledkov <xnox@ubuntu.com> | 2018-05-15 12:17:39 +0100 |
commit | 8d2a04e139c44f4d157b36ccfe85a19b44da02e8 (patch) | |
tree | 2d2231aa4cd553bdaa89d9123505cd4df7373228 /debian/patches/0002-imsm-Allow-create-RAID-volume-with-link-to-container.patch | |
parent | a8860e1d7bee9524596cf3c5186219cf18d78ffe (diff) |
Import patches since rc1.
Diffstat (limited to 'debian/patches/0002-imsm-Allow-create-RAID-volume-with-link-to-container.patch')
-rw-r--r-- | debian/patches/0002-imsm-Allow-create-RAID-volume-with-link-to-container.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/patches/0002-imsm-Allow-create-RAID-volume-with-link-to-container.patch b/debian/patches/0002-imsm-Allow-create-RAID-volume-with-link-to-container.patch new file mode 100644 index 00000000..d23c534e --- /dev/null +++ b/debian/patches/0002-imsm-Allow-create-RAID-volume-with-link-to-container.patch @@ -0,0 +1,35 @@ +From b91ad097d6eecb85cf28915836370288709fbda8 Mon Sep 17 00:00:00 2001 +From: Michal Zylowski <michal.zylowski@intel.com> +Date: Wed, 4 Apr 2018 14:20:17 +0200 +Subject: [PATCH 2/9] imsm: Allow create RAID volume with link to container + +After 1db03765("Subdevs can't be all missing when create raid device") +raid volume can't be created with link to container. This feature should +not be blocked in Create function. IMSM code forbids creation of +container with missing disk, so case like all dev's missing is already +handled. + +Permit IMSM volume creation when devices are given as link to container. + +Signed-off-by: Michal Zylowski <michal.zylowski@intel.com> +Signed-off-by: Jes Sorensen <jsorensen@fb.com> +--- + Create.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Create.c b/Create.c +index 50142d81..04b1dfc9 100644 +--- a/Create.c ++++ b/Create.c +@@ -475,7 +475,7 @@ int Create(struct supertype *st, char *mddev, + close(fd); + } + } +- if (missing_disks == dnum) { ++ if (missing_disks == dnum && !have_container) { + pr_err("Subdevs can't be all missing\n"); + return 1; + } +-- +2.17.0 + |