# \[PATCH 1/2\] env-11spare-migration: imsm requires IMSM\_NO\_PLATFORM set with loop devices

- Subsystems: THE REST
- Maintainers: Linus Torvalds
- List: linux-raid
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linux-raid/2011/01/6613636/t

## \[PATCH 1/2\] env-11spare-migration: imsm requires IMSM\_NO\_PLATFORM set with loop devices

- From: Labun, Marcin \<hidden\>
- Date: 2011-01-28 16:48:27 
- Message: https://ratatoskr.run/linux-raid/2011/01/6613636.md

```text
From 45b5bfb78e1e46f58b7176ca6ba32c0228f41d33 Mon Sep 17 00:00:00 2001
From: Marcin Labun <redacted>
Date: Fri, 28 Jan 2011 17:22:11 +0100
Subject: [PATCH 1/2] env-11spare-migration: imsm requires IMSM_NO_PLATFORM set with loop devices

By default IMSM checks if member device belongs to AHCI or ISCI controller.
When using loop devices one must disable these checks by setting
IMSM_NO_PLATFORM.

Signed-off-by: Marcin Labun <redacted>
---
 tests/env-11spare-migration |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/env-11spare-migration b/tests/env-11spare-migration
index 7bf468d..d5eb76d 100644
--- a/tests/env-11spare-migration
+++ b/tests/env-11spare-migration
@@ -1,9 +1,11 @@
 setup_env() {
        export IMSM_DEVNAME_AS_SERIAL=1
        export IMSM_TEST_OROM=1
+       export IMSM_NO_PLATFORM=1
        }
 
 reset_env() {
        unset IMSM_DEVNAME_AS_SERIAL
        unset IMSM_TEST_OROM
+       unset IMSM_NO_PLATFORM
 }
-- 
1.6.4.2

```

## Re: \[PATCH 1/2\] env-11spare-migration: imsm requires IMSM\_NO\_PLATFORM set with loop devices

- From: NeilBrown \<hidden\>
- Date: 2011-01-31 00:35:49 
- Message: https://ratatoskr.run/linux-raid/2011/01/6613705.md

```text
On Fri, 28 Jan 2011 16:48:27 +0000 "Labun, Marcin" [ref]
wrote:

> >From 45b5bfb78e1e46f58b7176ca6ba32c0228f41d33 Mon Sep 17 00:00:00 2001
> From: Marcin Labun <redacted>
> Date: Fri, 28 Jan 2011 17:22:11 +0100
> Subject: [PATCH 1/2] env-11spare-migration: imsm requires IMSM_NO_PLATFORM set with loop devices
> 
> By default IMSM checks if member device belongs to AHCI or ISCI controller.
> When using loop devices one must disable these checks by setting
> IMSM_NO_PLATFORM.
> 
> Signed-off-by: Marcin Labun <redacted>

Applied, thanks.

NeilBrown


> ---
>  tests/env-11spare-migration |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/tests/env-11spare-migration b/tests/env-11spare-migration
> index 7bf468d..d5eb76d 100644
> --- a/tests/env-11spare-migration
> +++ b/tests/env-11spare-migration
> @@ -1,9 +1,11 @@
>  setup_env() {
>         export IMSM_DEVNAME_AS_SERIAL=1
>         export IMSM_TEST_OROM=1
> +       export IMSM_NO_PLATFORM=1
>         }
>  
>  reset_env() {
>         unset IMSM_DEVNAME_AS_SERIAL
>         unset IMSM_TEST_OROM
> +       unset IMSM_NO_PLATFORM
>  }

```
