diff options
author | Blazej Kucman <blazej.kucman@intel.com> | 2020-02-19 10:54:49 +0100 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2020-02-24 22:08:15 +0100 |
commit | 3364781b929f571a3dc3a6afed09eb1b03ce607c (patch) | |
tree | 360634ebe0c0811ece9933d56414f34491464588 /super-ddf.c | |
parent | Remove the legacy whitespace (diff) | |
download | mdadm-3364781b929f571a3dc3a6afed09eb1b03ce607c.tar.xz mdadm-3364781b929f571a3dc3a6afed09eb1b03ce607c.zip |
imsm: pass subarray id to kill_subarray function
After patch b6180160f ("imsm: save current_vol number")
current_vol for imsm is not set and kill_subarray()
cannot determine which volume has to be deleted.
Volume has to be passed as "subarray_id".
The parameter affects only IMSM metadata.
Signed-off-by: Blazej Kucman <blazej.kucman@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-ddf.c b/super-ddf.c index 78020634..7cd5702d 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -4446,7 +4446,7 @@ static int _kill_subarray_ddf(struct ddf_super *ddf, const char *guid) return 0; } -static int kill_subarray_ddf(struct supertype *st) +static int kill_subarray_ddf(struct supertype *st, char *subarray_id) { struct ddf_super *ddf = st->sb; /* |